From d111f3bb47ededd2f125599eb4f02a01af1a02ff Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 27 Apr 2022 18:47:33 +0200 Subject: [PATCH] added code for compilation failed scenario --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sh b/build.sh index ce3860f..58891a0 100644 --- a/build.sh +++ b/build.sh @@ -32,6 +32,11 @@ echo "Compiling..." # Compile $compiler $files $flags -o $output +if [[ $? -ne 0 ]]; then + echo -e "\nCompilation failed. Did you run 'configure.sh' first?" + exit 1 +fi + ### echo "Output generated as '$output'" ###