summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-10-04 17:21:29 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-10-04 17:21:29 -0400
commitc85ec87841ee34c0d3fee9d753f5094c36daaf25 (patch)
tree28c039c97407f9b96dbf6d74375a0c96f82e3b43 /src
parent42ed1183c123e9afb7fddadbbc4e62d89f82b63d (diff)
librerelease: allow glob expansion to happen on REPODEST's remote componentv20141004
Diffstat (limited to 'src')
-rwxr-xr-xsrc/abslibre-tools/librerelease6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease
index 466ace4..3bea33b 100755
--- a/src/abslibre-tools/librerelease
+++ b/src/abslibre-tools/librerelease
@@ -225,7 +225,8 @@ release_packages() {
msg "%s to upload" "$(cd "${WORKDIR}/staging" && du -hc --files0-from="$file_list" | sed -n '$s/\t.*//p')"
msg "Uploading packages..."
- xargs -0r -a "$file_list" dirname -z | ssh "${REPODEST%%:*}" "$(printf 'mkdir -p -- %q && cd %q && xargs -0r mkdir -pv --' "${REPODEST#*:}"{,})"
+ # Use %s instead of %q so that ~home expansion is applied
+ xargs -0r -a "$file_list" dirname -z | ssh "${REPODEST%%:*}" "$(printf 'mkdir -p -- %s && cd %s && xargs -0r mkdir -pv --' "${REPODEST#*:}"{,})"
if ! rsync ${dryrun} "${rsync_flags[@]}" \
-0 --files-from="$file_list" \
"${WORKDIR}/staging" \
@@ -242,7 +243,8 @@ release_packages() {
fi
msg "Running db-update on repos"
- ssh "${REPODEST%%:*}" "$(printf 'STAGING=%q dbscripts/db-update' "${REPODEST#*:}")"
+ # Use %s instead of %q so that ~home expansion is applied
+ ssh "${REPODEST%%:*}" "$(printf 'STAGING=%s dbscripts/db-update' "${REPODEST#*:}")"
if [[ -n $HOOKPOSTRELEASE ]]; then
msg "Running HOOKPOSTRELEASE..."