Forráskód Böngészése

If ansi-to-src is missing, skip changing file.

Steve Thielemann 4 éve
szülő
commit
cc9ed579be
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      build_images.sh

+ 5 - 0
build_images.sh

@@ -5,6 +5,11 @@ FINAL=images.h
 
 ansi-to-src ansi/*.ans > $BASE
 
+if [ $? -eq 127 ]; then
+  echo "using default, missing ansi-to-src"
+  exit 0
+fi
+
 # workaround
 if [ -f "$FINAL" ]; then
   # file exists