[Fai-commit] r5904 - trunk/bin

Thomas Lange lange at alioth.debian.org
Thu Jul 29 02:39:06 UTC 2010


Author: lange
Date: 2010-07-29 02:39:06 +0000 (Thu, 29 Jul 2010)
New Revision: 5904

Modified:
   trunk/bin/fai-mirror
Log:
fai-mirror: use $mirrordir if no argument given (closes: #428597)


Modified: trunk/bin/fai-mirror
===================================================================
--- trunk/bin/fai-mirror	2010-07-29 02:36:43 UTC (rev 5903)
+++ trunk/bin/fai-mirror	2010-07-29 02:39:06 UTC (rev 5904)
@@ -233,7 +233,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