[Fai-commit] r3711 - trunk/bin

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Mon Jul 31 21:15:45 UTC 2006


Author: lange
Date: 2006-07-31 21:15:44 +0000 (Mon, 31 Jul 2006)
New Revision: 3711

Modified:
   trunk/bin/fai-cd
Log:
replcae backticks with $()


Modified: trunk/bin/fai-cd
===================================================================
--- trunk/bin/fai-cd	2006-07-31 21:14:33 UTC (rev 3710)
+++ trunk/bin/fai-cd	2006-07-31 21:15:44 UTC (rev 3711)
@@ -190,7 +190,7 @@
 [ -z "$mirrordir" ]   && die 4 "Please specify the directory of your mirror using -m"
 [ -d "$mirrordir" ]   || die 5 "$mirrordir is not a directory"
 [ -f "$isoname" ]     && die 3 "Outputfile $isoname already exists. Please remove it."
-[ `id -u` -ne 0 ]     && die 9 "Run this program as root."
+[ $(id -u) != "0" ]   && die 9 "Run this program as root."
 
 [ -x "$(which mkinitrd-cd)" ] || die 7 "mkinitrd-cd not found. Please install package."
 [ -x "$(which mkisofs)" ] || die 8 "mkisofs not found. Please install package."




More information about the Fai-commit mailing list