[Fai-commit] r6127 - trunk/bin
Michael Prokop
mika at alioth.debian.org
Thu Oct 14 15:08:49 UTC 2010
Author: mika
Date: 2010-10-14 15:08:48 +0000 (Thu, 14 Oct 2010)
New Revision: 6127
Modified:
trunk/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: trunk/bin/fai-cd
===================================================================
--- trunk/bin/fai-cd 2010-10-14 14:56:11 UTC (rev 6126)
+++ trunk/bin/fai-cd 2010-10-14 15:08:48 UTC (rev 6127)
@@ -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