While trying to do this with ScummFont, in a directory where there was no CHAR_* files:
for file in CHAR_000? ; do
scummfont o $file $file.bmp && scummfont i $file $file.bmp
done
this error happened:
ERROR: Cannot open font file
ERROR: Cannot open BMP file
The problem is that I used &&, so it should have stopped right after the first scummfont process. Looks like we're returning 0 even when an exception happens. That's quite dangerous for scripting…
Need to check all the tools for this behavior, and fix it.
While trying to do this with ScummFont, in a directory where there was no
CHAR_*
files:this error happened:
The problem is that I used
&&
, so it should have stopped right after the firstscummfont
process. Looks like we're returning0
even when an exception happens. That's quite dangerous for scripting…Need to check all the tools for this behavior, and fix it.