Commit 9aac6898 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix a bug in common.sh

test returned !0 causing problems to the script!
parent d5f829b8
......@@ -251,7 +251,10 @@ cleanup() {
sleep $interval
$cmd && break
done
test $? -eq 1 && { echo "Giving Up..."; exit 1; }
if [ "$?" != "0" ]; then
echo "Giving Up..."
exit 1;
fi
done
fi
}
......@@ -270,6 +273,7 @@ fi
: ${HELPER_IMG:="@HELPER_IMG@"}
: ${HELPER_KERNEL:="@HELPER_KERNEL@"}
: ${HELPER_INITRD:="@HELPER_INITRD@"}
: ${HELPER_PKG:="@HELPER_DIR@/snf-image-helper.deb"}
: ${HELPER_SOFT_TIMEOUT=120}
: ${HELPER_HARD_TIMEOUT=15}
: ${HELPER_USER="nobody"}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment