Commit a72f7ec5 authored by Łukasz Nowak's avatar Łukasz Nowak

Protect against empty script fail-positive result

parent ea678876
......@@ -57,6 +57,10 @@ fi
DEPLOYMENT_SCRIPT=/tmp/test-script-deployment.bash.$$
wget -O $DEPLOYMENT_SCRIPT -q $SCRIPTURL
if [[ ! -s "$DEPLOYMENT_SCRIPT" ]] ; then
echo "exit 1" > $DEPLOYMENT_SCRIPT
fi
try=1
while true; do
echo "$0: Try $try. Running '/bin/bash $DEPLOYMENT_SCRIPT'" >> $LOG_FILE 2>&1
......
......@@ -12,7 +12,7 @@ recipe = slapos.recipe.download
ignore-existing = true
filename = in-vm-test
url = ${:_profile_base_location_}/${:filename}
md5sum = 20a1086d749d831692ec8e3e7e5c9184
md5sum = 67368520461951f3771a16ddf5b18353
mode = 0644
download-only = true
on-update = true
......
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