From 52accf284a625bc44949fb6661024bea4740935d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 9 May 2025 15:32:35 +0530 Subject: [PATCH] Slightly improve rsync script --- rsync-and-build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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