Updated rsync command to work with latest version of bats-core
parent
c53cc9f143
commit
3093273425
|
|
@ -10,7 +10,7 @@ function local_setup {
|
||||||
echo "Lib: $lib_directory"
|
echo "Lib: $lib_directory"
|
||||||
# Use rsync to copy Bash-it to the temp folder
|
# Use rsync to copy Bash-it to the temp folder
|
||||||
# rsync is faster than cp, since we can exclude the large ".git" folder
|
# rsync is faster than cp, since we can exclude the large ".git" folder
|
||||||
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../.. "$BASH_IT"
|
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../../.. "$BASH_IT"
|
||||||
|
|
||||||
rm -rf "$BASH_IT"/enabled
|
rm -rf "$BASH_IT"/enabled
|
||||||
rm -rf "$BASH_IT"/aliases/enabled
|
rm -rf "$BASH_IT"/aliases/enabled
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ function local_setup {
|
||||||
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
||||||
# Use rsync to copy Bash-it to the temp folder
|
# Use rsync to copy Bash-it to the temp folder
|
||||||
# rsync is faster than cp, since we can exclude the large ".git" folder
|
# rsync is faster than cp, since we can exclude the large ".git" folder
|
||||||
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../.. "$BASH_IT"
|
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../../.. "$BASH_IT"
|
||||||
|
|
||||||
rm -rf "$BASH_IT"/enabled
|
rm -rf "$BASH_IT"/enabled
|
||||||
rm -rf "$BASH_IT"/aliases/enabled
|
rm -rf "$BASH_IT"/aliases/enabled
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ function local_setup {
|
||||||
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
||||||
# Use rsync to copy Bash-it to the temp folder
|
# Use rsync to copy Bash-it to the temp folder
|
||||||
# rsync is faster than cp, since we can exclude the large ".git" folder
|
# rsync is faster than cp, since we can exclude the large ".git" folder
|
||||||
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../.. "$BASH_IT"
|
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../../.. "$BASH_IT"
|
||||||
|
|
||||||
rm -rf "$BASH_IT"/enabled
|
rm -rf "$BASH_IT"/enabled
|
||||||
rm -rf "$BASH_IT"/aliases/enabled
|
rm -rf "$BASH_IT"/aliases/enabled
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ function local_setup {
|
||||||
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
||||||
# Use rsync to copy Bash-it to the temp folder
|
# Use rsync to copy Bash-it to the temp folder
|
||||||
# rsync is faster than cp, since we can exclude the large ".git" folder
|
# rsync is faster than cp, since we can exclude the large ".git" folder
|
||||||
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../.. "$BASH_IT"
|
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../../.. "$BASH_IT"
|
||||||
|
|
||||||
rm -rf "$BASH_IT"/enabled
|
rm -rf "$BASH_IT"/enabled
|
||||||
rm -rf "$BASH_IT"/aliases/enabled
|
rm -rf "$BASH_IT"/aliases/enabled
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ function local_setup {
|
||||||
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
||||||
# Use rsync to copy Bash-it to the temp folder
|
# Use rsync to copy Bash-it to the temp folder
|
||||||
# rsync is faster than cp, since we can exclude the large ".git" folder
|
# rsync is faster than cp, since we can exclude the large ".git" folder
|
||||||
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../.. "$BASH_IT"
|
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../../.. "$BASH_IT"
|
||||||
|
|
||||||
rm -rf "$BASH_IT"/enabled
|
rm -rf "$BASH_IT"/enabled
|
||||||
rm -rf "$BASH_IT"/aliases/enabled
|
rm -rf "$BASH_IT"/aliases/enabled
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ function local_setup {
|
||||||
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
||||||
# Use rsync to copy Bash-it to the temp folder
|
# Use rsync to copy Bash-it to the temp folder
|
||||||
# rsync is faster than cp, since we can exclude the large ".git" folder
|
# rsync is faster than cp, since we can exclude the large ".git" folder
|
||||||
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../.. "$BASH_IT"
|
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../../.. "$BASH_IT"
|
||||||
|
|
||||||
rm -rf "$BASH_IT"/enabled
|
rm -rf "$BASH_IT"/enabled
|
||||||
rm -rf "$BASH_IT"/aliases/enabled
|
rm -rf "$BASH_IT"/aliases/enabled
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ function local_setup {
|
||||||
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
||||||
# Use rsync to copy Bash-it to the temp folder
|
# Use rsync to copy Bash-it to the temp folder
|
||||||
# rsync is faster than cp, since we can exclude the large ".git" folder
|
# rsync is faster than cp, since we can exclude the large ".git" folder
|
||||||
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../.. "$BASH_IT"
|
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../../.. "$BASH_IT"
|
||||||
|
|
||||||
rm -rf "$BASH_IT"/enabled
|
rm -rf "$BASH_IT"/enabled
|
||||||
rm -rf "$BASH_IT"/aliases/enabled
|
rm -rf "$BASH_IT"/aliases/enabled
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ function local_setup {
|
||||||
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
||||||
# Use rsync to copy Bash-it to the temp folder
|
# Use rsync to copy Bash-it to the temp folder
|
||||||
# rsync is faster than cp, since we can exclude the large ".git" folder
|
# rsync is faster than cp, since we can exclude the large ".git" folder
|
||||||
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../.. "$BASH_IT"
|
rsync -qavrKL -d --delete-excluded --exclude=.git $lib_directory/../../../.. "$BASH_IT"
|
||||||
|
|
||||||
rm -rf "$BASH_IT"/enabled
|
rm -rf "$BASH_IT"/enabled
|
||||||
rm -rf "$BASH_IT"/aliases/enabled
|
rm -rf "$BASH_IT"/aliases/enabled
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue