[sheepdog] [PATCH] fix this: simple2farm: line 31: [: ==: unary operator expected
Jens Weber
jweber at tek2b.org
Sun Jul 15 14:27:11 CEST 2012
Signed-off-by: Jens Weber <jweber at tek2b.org>
---
script/simple2farm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/script/simple2farm b/script/simple2farm
index a7bc109..0743f20 100755
--- a/script/simple2farm
+++ b/script/simple2farm
@@ -28,7 +28,7 @@ config_offset=11
# Get the backend store from config file
echo "Read config file"
store=$(od --skip-bytes=$config_offset -An -c ../config | sed 's/ //g' | sed 's/\\0//g')
-if [ $store == "farm" ]; then
+if [ "x$store" == "xfarm" ]; then
echo "It's already the farm store, we'er done"
exit 0
fi
--
1.7.10.4
More information about the sheepdog
mailing list