Skip to content

Commit

Permalink
feat: script to compile & run
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroFnseca committed Aug 29, 2023
1 parent 323bff6 commit 5a0d25d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5a0d25d

Please sign in to comment.