Skip to content
Snippets Groups Projects
compile_and_run.sh 156 B
#!/bin/sh

if command -v valgrind
then VALGRIND=`command -v valgrind`" -q"
else VALGRIND=""
fi

gcc -Wall $1 -o $1.exe && $VALGRIND ./$1.exe && rm ./$1.exe