aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2019-12-21 14:30:22 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2019-12-21 14:30:22 -0800
commitb21bf89ff3164c0f9c54f403e71abd4b8f9beb2d (patch)
tree3457da6b031bd6f2169be6e92e1be57cce031608
parentsnapshots-create.sh: fix cleanup of EXCLUSION_LIST (diff)
downloadmastermirror-scripts-b21bf89ff3164c0f9c54f403e71abd4b8f9beb2d.tar.gz
mastermirror-scripts-b21bf89ff3164c0f9c54f403e71abd4b8f9beb2d.tar.bz2
mastermirror-scripts-b21bf89ff3164c0f9c54f403e71abd4b8f9beb2d.zip
snapshots-create.sh: support alt vars source20191221T144059Z
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xsnapshots-create.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/snapshots-create.sh b/snapshots-create.sh
index c6c3690..1123422 100755
--- a/snapshots-create.sh
+++ b/snapshots-create.sh
@@ -12,7 +12,8 @@
# 8) clean up old deltas
umask 022
-source /usr/local/bin/mastermirror/rsync-gen.vars
+RSYNC_VARS=${RSYNC_VARS:=/usr/local/bin/mastermirror/rsync-gen.vars}
+source "${RSYNC_VARS}" || exit 3
# locations (if used in multiple files, please move to rsync-gen.vars file)
MASTER="${FINALDIR_repo_gentoo}" # the master gentoo-x86 copy