[Fai-commit] r6024 - branches/stable/3.4/bin
Michael Prokop
mika at alioth.debian.org
Tue Aug 17 12:57:27 UTC 2010
Author: mika
Date: 2010-08-17 12:57:25 +0000 (Tue, 17 Aug 2010)
New Revision: 6024
Modified:
branches/stable/3.4/bin/fai-mirror
Log:
fai-mirror: use $mirrordir if no argument given (closes: #428597)
Signed-off-by: Michael Prokop <mika at grml.org>
Modified: branches/stable/3.4/bin/fai-mirror
===================================================================
--- branches/stable/3.4/bin/fai-mirror 2010-08-17 12:57:17 UTC (rev 6023)
+++ branches/stable/3.4/bin/fai-mirror 2010-08-17 12:57:25 UTC (rev 6024)
@@ -236,7 +236,10 @@
[ -n "$exclasses" -a -n "$cclasses" ] && die 3 "Options -x and -c not allowed at the same time."
-mirrordir=$1
+# use first argument if given, use variable mirrordir if not argument was given
+if [ -n "$1" ]; then
+ mirrordir=$1
+fi
if [ -z "$mirrordir" ]; then
die 2 "Please give the absolute path to the mirror."
fi
More information about the Fai-commit
mailing list