From: John Tsiombikas Date: Sun, 21 Jan 2018 04:32:02 +0000 (+0200) Subject: fixed tools/prepare_data to also perform the conversion if the X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=commitdiff_plain;h=45d038b435f491fa39f2264e58977669b3e6952e fixed tools/prepare_data to also perform the conversion if the destination file is missing --- diff --git a/tools/prepare_data b/tools/prepare_data index 7106581..a7f1eb4 100755 --- a/tools/prepare_data +++ b/tools/prepare_data @@ -63,7 +63,7 @@ while read line; do touch "$infile" fi - if [ "$infile" -nt "$outfile" ]; then + if [ \( ! -f "$outfile" \) -o \( "$infile" -nt "$outfile" \) ]; then if [ "$op" = nop ]; then echo copying $fname mkdir -p $outdir/$(dirname $path)