summaryrefslogtreecommitdiff
path: root/commitpkg
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-08-16 21:35:56 -0400
committerPierre Schmitz <pierre@archlinux.de>2011-08-18 10:11:27 +0200
commitba4f28cc43ce217ba19187a1dc79d72ca72ba413 (patch)
treeb7570382ceccd345939d291249a4eb644a788136 /commitpkg
parentdc7b96e9179762260b8bafac74d22a65b729f260 (diff)
downloaddevtools-ba4f28cc43ce217ba19187a1dc79d72ca72ba413.tar.xz
commitpkg: declare rsyncopts as an array
Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'commitpkg')
-rwxr-xr-xcommitpkg6
1 files changed, 3 insertions, 3 deletions
diff --git a/commitpkg b/commitpkg
index bdc1fd6..d37babf 100755
--- a/commitpkg
+++ b/commitpkg
@@ -97,9 +97,9 @@ for i in 'changelog' 'install'; do
done
# see if any limit options were passed, we'll send them to rsync
-rsyncopts='-e ssh -p --chmod=ug=rw,o=r -c -h -L --progress --partial -y'
+rsyncopts=(-e ssh -p --chmod=ug=rw,o=r -c -h -L --progress --partial -y)
if [ "$1" = '-l' ]; then
- rsyncopts="$rsyncopts --bwlimit=$2"
+ rsyncopts+=("--bwlimit=$2")
shift 2
fi
@@ -175,7 +175,7 @@ done
if [[ ${#uploads[*]} -gt 0 ]]; then
echo 'uploading all package and signature files'
- rsync $rsyncopts "${uploads[@]}" "$server:staging/$repo/" || abort
+ rsync "${rsyncopts[@]}" "${uploads[@]}" "$server:staging/$repo/" || abort
fi
if [ "${arch[*]}" == 'any' ]; then