Fix non-zero exit code even if the script succeed (#1302)
The script succeeded but the exit code is 1 because it's not a dryrun so the last command failed.
This commit is contained in:
@@ -524,7 +524,9 @@ Not deleting $directory; name is suspiciously short. Something is wrong."
|
|||||||
echo "You'll also need to configure ngx_pagespeed if you haven't yet:"
|
echo "You'll also need to configure ngx_pagespeed if you haven't yet:"
|
||||||
echo " https://developers.google.com/speed/pagespeed/module/configuration"
|
echo " https://developers.google.com/speed/pagespeed/module/configuration"
|
||||||
fi
|
fi
|
||||||
"$DRYRUN" && echo "[this was a dry run; your system is unchanged]"
|
if "$DRYRUN"; then
|
||||||
|
echo "[this was a dry run; your system is unchanged]"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Start running things from a call at the end so if this script is executed
|
# Start running things from a call at the end so if this script is executed
|
||||||
|
|||||||
Reference in New Issue
Block a user