From: R. Steve McKown Date: Fri, 28 Sep 2012 00:01:49 +0000 (-0600) Subject: repo-push-public gets same cmdline arg as git-push-public X-Git-Url: https://oss.titaniummirror.com/gitweb?p=deploy-utils.git;a=commitdiff_plain;h=3788a9a77e0fac8a7af63fada2701ea019c13dfa repo-push-public gets same cmdline arg as git-push-public --- diff --git a/repo-push-public b/repo-push-public index d0251dc..87c70e7 100755 --- a/repo-push-public +++ b/repo-push-public @@ -3,8 +3,8 @@ # Push changes to the local TMI repo to the public repo. We really should be # using launchpad to host the public version of the TMI repo. -PUBLICSERVER="$1" -[ -z "$PUBLICSERVER" ] && PUBLICSERVER=oss.titaniummirror.com +PUBLICSERVER=oss.titaniummirror.com +[ "$1" = "-s" -a -n "$2" ] && PUBLICSERVER="$2" echo "Updating APT repo on $PUBLICSERVER" rsync -avz --delete /var/local/aptrepo/ $PUBLICSERVER:/var/local/aptrepo/