txlyre há 1 ano atrás
pai
commit
e2362132ef
1 ficheiros alterados com 2 adições e 1 exclusões
  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"