From 00cc9d8cc25864aa8638bd6fe67048565f9fecaa Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 21 Jan 2024 14:16:34 +0300 Subject: [PATCH] fix test.sh --- test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 3a8e603..63503bc 100755 --- a/test.sh +++ b/test.sh @@ -28,12 +28,14 @@ echo -e "#include \nint main(void){return 0;}" > test.c $CC test.c -o $out_name chmod +x $out_name -rm test.c $out_name +rm test.c if ! ./$out_name; then echo "[FAILED] Fix c compiler or headers..." + rm $out_name exit 1 +rm $out_name fi exit 0