aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-12-01 21:43:14 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-12-01 21:43:48 +0100
commit463b8ec708db0d2d7405d434e28d0140c94b1d98 (patch)
treef63c45ae7bcb2fdd66e37020e538d7655dfadc16
parent7ee347e13ced7f1a84e7b325e65616b169e238a0 (diff)
downloadcmix-463b8ec708db0d2d7405d434e28d0140c94b1d98.tar.gz
cmix-463b8ec708db0d2d7405d434e28d0140c94b1d98.tar.bz2
cmix-463b8ec708db0d2d7405d434e28d0140c94b1d98.zip
Fixes a parse error when not giving an argument to run.sh
-rwxr-xr-xrun.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/run.sh b/run.sh
index 1adca4f..8c5852b 100755
--- a/run.sh
+++ b/run.sh
@@ -1,8 +1,9 @@
#!/bin/bash
build_dir=/home/dennis/projects/cmix/build-cmix-Desktop-Default
-
-if [ $1 == "benchmark" ] ; then
+if [ $# == 0 ] ; then
+ tool=""
+elif [ $1 == "benchmark" ] ; then
tool="valgrind --tool=cachegrind"
elif [ $1 == "valgrind" ] ; then
tool="valgrind --leak-check=yes --track-origins=yes"