From af9cc43bfab797b4d39517067f00ad56f14fe484 Mon Sep 17 00:00:00 2001 From: Rodolfo Barcelli Jo Date: Thu, 22 Jan 2026 08:22:03 +0800 Subject: [PATCH] Update build.sh --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sh b/build.sh index cdffc95..e4e88a3 100755 --- a/build.sh +++ b/build.sh @@ -5,5 +5,10 @@ if [[ ! -d ./build ]]; then fi pushd "./build" +echo "Building test/main" gcc -g -std=c89 "../test/main.c" -o main.c +if [[ $? == 0 ]] && [[ $1 == "--run" ]]; then + ./main.c +fi popd +