From 5a0d25d6b5b9633524af66fc175e44771caf9686 Mon Sep 17 00:00:00 2001 From: pedrofnseca Date: Mon, 28 Aug 2023 22:33:25 -0300 Subject: [PATCH] feat: script to compile & run --- run.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 run.sh diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..25e4627 --- /dev/null +++ b/run.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +echo -e "\n\033[0;33mCompiling...\033[0m\n" + +make + +if [ $? -ne 0 ]; then + echo -e "\n\033[0;31mCompilation failed!\033[0m\n" + exit 1 +fi + +echo -e "\n\033[0;32mCompilation successful!\033[0m\n" + +./bin/main \ No newline at end of file