[Fai-commit] r6153 - branches/stable/3.4/bin

Michael Prokop mika at alioth.debian.org
Fri Oct 15 11:08:01 UTC 2010


Author: mika
Date: 2010-10-15 11:07:32 +0000 (Fri, 15 Oct 2010)
New Revision: 6153

Modified:
   branches/stable/3.4/bin/fai-cd
Log:
bin/fai-cd: fix quote handling of rsync check

Make sure the check for rsync executable returns the proper
value.  Avoid "&&" logic and use if...then.. instead. More
details in thread "fai-cd: quotes around command for -x test" on
linux-fai-devel mailinglist.

Thanks: Michael Log <mmlogin at gmail.com>
Signed-off-by: Michael Prokop <mika at debian.org>

Modified: branches/stable/3.4/bin/fai-cd
===================================================================
--- branches/stable/3.4/bin/fai-cd	2010-10-15 11:06:25 UTC (rev 6152)
+++ branches/stable/3.4/bin/fai-cd	2010-10-15 11:07:32 UTC (rev 6153)
@@ -331,7 +331,7 @@
 # main program
 
 rsync=0
-[ -x $(which rsync) ] && rsync=1
+if [ -x "$(which rsync)" ] ; then rsync=1 ; fi
 
 # Parse commandline options
 while getopts "nkfhHg:bBG:m:C:u:" opt ; do




More information about the Fai-commit mailing list