diff options
author | Dan McGee <dan@archlinux.org> | 2011-04-01 16:35:32 -0500 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-04-02 00:26:33 +0200 |
commit | 69f9e64aa3c14892d8357330cd3694b66958eeee (patch) | |
tree | efd5912c2e6592199e96a2b3f59f15306c0e6dea | |
parent | 71efb148df6505c4fbf50cc80886cd805d296396 (diff) |
commitpkg: move all rsync opts to rsyncopts var
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-x | commitpkg | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -97,9 +97,9 @@ for i in 'changelog' 'install'; do done # see if any limit options were passed, we'll send them to rsync -unset rsyncopts +rsyncopts="-e ssh -p --chmod 'ug=rw,o=r' -c -h -L --progress --partial" if [ "$1" = '-l' ]; then - rsyncopts="--bwlimit=$2" + rsyncopts="$rsyncopts --bwlimit=$2" shift 2 fi @@ -128,7 +128,7 @@ for _arch in ${arch[@]}; do fi echo -n 'uploading ' - rsync -p --chmod 'ug=rw,o=r' -c -h -L --progress $rsyncopts --partial "${pkgfile}" -e ssh "$server:staging/$repo/${pkgfile##*/}" || abort + rsync $rsyncopts "${pkgfile}" "$server:staging/$repo/${pkgfile##*/}" || abort done archrelease $repo-${_arch} || abort done |