From 463b8ec708db0d2d7405d434e28d0140c94b1d98 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 1 Dec 2016 21:43:14 +0100 Subject: Fixes a parse error when not giving an argument to run.sh --- run.sh | 5 +++-- 1 file 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" -- cgit v1.2.3-70-g09d2