From: Peter Palfrader Date: Fri, 29 Sep 2017 08:31:13 +0000 (+0200) Subject: Quote COMPONENT computation in static-mirror-run X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=7e4aee8cc6177113339e41a3ac828952e7343141;p=mirror%2Fdsa-puppet.git Quote COMPONENT computation in static-mirror-run --- diff --git a/modules/roles/files/static-mirroring/static-mirror-run b/modules/roles/files/static-mirroring/static-mirror-run index 45d73458b..eac646bb3 100755 --- a/modules/roles/files/static-mirroring/static-mirror-run +++ b/modules/roles/files/static-mirroring/static-mirror-run @@ -62,7 +62,7 @@ SYNC_SOURCE=${1:-}; shift SYNC_SERIAL=${1:-}; shift || true if [ -z "$COMPONENTDIR" ]; then usage >&2; exit 1; fi if [ -z "$SYNC_SOURCE" ]; then usage >&2; exit 1; fi -COMPONENT=$(basename ${COMPONENTDIR}) +COMPONENT="$(basename "${COMPONENTDIR}")" RSYNC="rsync" RSYNC_BASE_OPTIONS="-rtvz --delete --links --hard-links --safe-links"