*) set -x ;;
esac
+fail () {
+ echo >&2 "dgit-mirror-rsync: $*"; exit 127
+}
+
+if [ $# -lt 2 ]; then fail "too few arguments"; fi
+
self=$0
distrodir=$1; shift
action=$1; shift
cd $repos
queue=_mirror-queue
-fail () {
- echo >&2 "dgit-mirror-rsync: $*"; exit 127
-}
-
case "$remoterepos" in
*:/*|/*) ;;
'') fail "remoterepos config not set" ;;