Stop download on failure during generation
This commit is contained in:
parent
a13d74e005
commit
bf61184217
@ -48,6 +48,10 @@ if [ "$FILES" != "config.lua" ]; then
|
|||||||
echo "Compress $f ..."
|
echo "Compress $f ..."
|
||||||
out=$(echo "$f" | sed 's/.lua/_diet.lua/g')
|
out=$(echo "$f" | sed 's/.lua/_diet.lua/g')
|
||||||
$DIET ../$f -o ../diet/$out
|
$DIET ../$f -o ../diet/$out
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Failed to generate file"
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
OUTFILES="$OUTFILES diet/$out"
|
OUTFILES="$OUTFILES diet/$out"
|
||||||
else
|
else
|
||||||
OUTFILES="$OUTFILES $f"
|
OUTFILES="$OUTFILES $f"
|
||||||
|
Loading…
Reference in New Issue
Block a user