mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-04 22:24:20 -04:00
Slightly improve rsync script
This commit is contained in:
parent
d7d048acd5
commit
52accf284a
@ -4,11 +4,12 @@
|
|||||||
: <<'COMMENT'
|
: <<'COMMENT'
|
||||||
export RSYNC_PASSWORD=password
|
export RSYNC_PASSWORD=password
|
||||||
export BUILDBOT=rsync://username@server/path/to/this/directory
|
export BUILDBOT=rsync://username@server/path/to/this/directory
|
||||||
|
mkdir -p ~/calibre-src
|
||||||
cd ~/calibre-src || exit 1
|
cd ~/calibre-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…
x
Reference in New Issue
Block a user