Explorar el Código

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

Steve Thielemann hace 4 años
padre
commit
cc9ed579be
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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