diff options
author | Joerg Jaspert <joerg@debian.org> | 2008-10-21 23:55:12 +0200 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2008-10-21 23:55:12 +0200 |
commit | eeaaa92e21810a4d61a6513ff980267b64d4b19f (patch) | |
tree | d7846c394f9bbc72ef93f52b0bad9589dfe0da93 /bin/runmirrors | |
parent | 62404256ad00efddb933621378d30d28e2820449 (diff) |
Fix various little errors
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin/runmirrors')
-rwxr-xr-x | bin/runmirrors | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/runmirrors b/bin/runmirrors index 8ce2919..57709b5 100755 --- a/bin/runmirrors +++ b/bin/runmirrors @@ -29,8 +29,9 @@ BASEDIR=${BASEDIR:-"${HOME}"} NAME="`basename $0`" # In case we are called with an argument we look for a different configuration. -if [ -n "$1" ]; then - NAME="${NAME}-$1" +CONF=${1:-""} +if [ -n "${CONF}" ]; then + NAME="${NAME}-${CONF}" fi # Read our config file |