Delete the target file when it failed to generate

This commit is contained in:
Pierre Pronchery 2012-05-17 02:48:38 +00:00
parent 080c7accc3
commit 7c696abefe

View File

@ -116,7 +116,8 @@ while [ $# -gt 0 ]; do
#XXX ignore errors
if [ $? -ne 0 ]; then
echo "$0: $target: Could not create page" 1>&2
install=0
$RM -- "$target"
break
fi
#install