Slightly improve rsync script
This commit is contained in:
@@ -4,11 +4,12 @@
|
|||||||
: <<'COMMENT'
|
: <<'COMMENT'
|
||||||
export RSYNC_PASSWORD=password
|
export RSYNC_PASSWORD=password
|
||||||
export BUILDBOT=rsync://useranme@server/path/to/this/directory
|
export BUILDBOT=rsync://useranme@server/path/to/this/directory
|
||||||
|
mkdir -p ~/kitty-src
|
||||||
cd ~/kitty-src || exit 1
|
cd ~/kitty-src || exit 1
|
||||||
|
|
||||||
script=rsync-and-build.sh
|
script=rsync-and-build.sh
|
||||||
if [[ -e "$script" ]]; then
|
if [[ -e "$script" ]]; then
|
||||||
source "$script"
|
. "./$script"
|
||||||
else
|
else
|
||||||
rsync -a --include "$script" --exclude '*' "$BUILDBOT" . && source "$script"
|
rsync -a --include "$script" --exclude '*' "$BUILDBOT" . && source "$script"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user