Stop download on failure during generation

This commit is contained in:
Ollo 2023-03-04 19:20:41 +01:00
parent a13d74e005
commit bf61184217

View File

@ -48,6 +48,10 @@ if [ "$FILES" != "config.lua" ]; then
echo "Compress $f ..."
out=$(echo "$f" | sed 's/.lua/_diet.lua/g')
$DIET ../$f -o ../diet/$out
if [ $? -ne 0 ]; then
echo "Failed to generate file"
exit $?
fi
OUTFILES="$OUTFILES diet/$out"
else
OUTFILES="$OUTFILES $f"