20665: Code style improvements.
[arvados.git] / tools / salt-install / installer.sh
index 55cbd36d94673fec09eafa562390d30b752aeab2..b042d1a835938dc18190da240000afe61c04b0a0 100755 (executable)
@@ -127,7 +127,7 @@ deploynode() {
 }
 
 loadconfig() {
-    if [ ! -s ${CONFIG_FILE} -o ! -s ${CONFIG_FILE}.secrets ]; then
+    if [[ -s ${CONFIG_FILE} && -s ${CONFIG_FILE}.secrets ]]; then
                echo "Must be run from initialized setup dir, maybe you need to 'initialize' first?"
     fi
     source ${CONFIG_FILE}.secrets