From f9316771af1fbad2359d995c2e6c6e98b7d675fd Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 20 Jan 2024 19:27:56 +0300 Subject: [PATCH] fixed --- test.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test.sh b/test.sh index eb4065e..3a8e603 100755 --- a/test.sh +++ b/test.sh @@ -24,16 +24,14 @@ fi #C out_name=$(mktemp XXXXXX) -echo "#include " >> test.c -echo "int main(void){return 0;}" >> test.c +echo -e "#include \nint main(void){return 0;}" > test.c $CC test.c -o $out_name chmod +x $out_name -rm test.c +rm test.c $out_name if ! ./$out_name; then echo "[FAILED] Fix c compiler or headers..." - rm $out_name exit 1 fi