txlyre 1 year ago
parent
commit
38da6c0fdd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      langs/holyc/run.sh

+ 2 - 1
langs/holyc/run.sh

@@ -2,11 +2,12 @@ IN="$(mktemp --suffix .HC)"
 
 cat > "$IN"
 
-echo "$(hcc $IN | tail -n +2)"
+hcc "$IN" | tail -n +2
 
 if [ -f "./a.out" ] && ! [ -s "./a.out" ]; then
   OUT="$(mktemp)"
   mv ./a.out "$OUT"
+  chmod +x "$OUT"
 
   exec "$OUT"
 fi