Slightly improve rsync script
This commit is contained in:
parent
cca838b952
commit
d6225153ee
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue