txlyre hace 1 año
padre
commit
e2362132ef
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      langs/holyc/run.sh

+ 2 - 1
langs/holyc/run.sh

@@ -1,10 +1,11 @@
 IN="$(mktemp --suffix .HC)"
+OUT="$(mktemp)"
 
 cat > "$IN"
 
 LOG="$(hcc $IN)"
 
-if [ -f "./a.out" ] && ! [ -s "./a.out" ]; then
+if [ $? -eq 0 ]; then
   OUT="$(mktemp)"
   mv ./a.out "$OUT"
   chmod +x "$OUT"