summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2009-12-31 15:11:25 +0100
committerJoerg Jaspert <joerg@debian.org>2009-12-31 15:11:25 +0100
commitbce457d4e1f83d2ce0a80a889cb6462199387c1a (patch)
tree6a652997cb9834fad9205b0c2fe49b2e7b18a2b1
parent24de4a2f1d314be85bb3eb14c15bd0bf8de015ae (diff)
runmirrors
only add -conf to the name when it has value Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rwxr-xr-xbin/runmirrors4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/runmirrors b/bin/runmirrors
index a1623fd..6d4faed 100755
--- a/bin/runmirrors
+++ b/bin/runmirrors
@@ -56,7 +56,9 @@ if [ $# -gt 0 ]; then
while getopts ':a:k:fh' OPTION ; do
case $OPTION in
a) CONF="${OPTARG}"
- NAME="${NAME}-${CONF}"
+ if [ -n "${CONF}" ]; then
+ NAME="${NAME}-${CONF}"
+ fi
;;
k) PUSHKIND="${OPTARG}"
;;