Slightly improve rsync script

This commit is contained in:
Kovid Goyal 2025-05-09 15:32:35 +05:30
parent d7d048acd5
commit 52accf284a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -4,11 +4,12 @@
: <<'COMMENT'
export RSYNC_PASSWORD=password
export BUILDBOT=rsync://username@server/path/to/this/directory
mkdir -p ~/calibre-src
cd ~/calibre-src || exit 1
script=rsync-and-build.sh
if [[ -e "$script" ]]; then
source "$script"
. "./$script"
else
rsync -a --include "$script" --exclude '*' "$BUILDBOT" . && source "$script"
fi