@@ -5,6 +5,6 @@ cat > "$IN"
gnatmake "$IN" -o "$OUT" -w -gnatws
-if [ -f $OUT ] && ! [ -s $OUT ]; then
+if [ $? -eq 0 ]; then
exec "$OUT"
fi
@@ -5,10 +5,10 @@ TEMP="$(mktemp --suffix .o)"
cat > "$IN"
nasm -felf64 "$IN" -o "$TEMP"
-if [ -f $TEMP ] && ! [ -s $TEMP ]; then
ld "$TEMP" -o "$OUT"
-fi
-
+ if [ $? -eq 0 ]; then
+ chmod +x "$OUT"
+ fi
@@ -2,6 +2,6 @@ OUT="$(mktemp)"
gcc -o "$OUT" -xc -
g++ -o "$OUT" -xc++ -
gfortran -o "$OUT" "$IN"
fpc -l- -v0 -o"$OUT" "$IN"
rustc -o "$OUT" -
-if [ -f $OUT ]; then