diff --git a/rsync-and-build.sh b/rsync-and-build.sh index c6dad48d02..4bc2237b4a 100644 --- a/rsync-and-build.sh +++ b/rsync-and-build.sh @@ -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