Don't pass script args to binary.
authorCarl Hetherington <cth@carlh.net>
Tue, 31 Jul 2012 10:40:59 +0000 (11:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 31 Jul 2012 10:40:59 +0000 (11:40 +0100)
run/dcpdiff

index 17999383a66c0dbec9be542de8bd3c92f4c1cb7d..ab21937c9ca30eada41012e8bd87bb981e017155 100755 (executable)
@@ -2,8 +2,10 @@
 
 export LD_LIBRARY_PATH=build/src
 if [ "$1" == "--debug" ]; then
+    shift
     gdb --args build/tools/dcpdiff "$@"
 elif [ "$1" == "--valgrind" ]; then
+    shift
     valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/tools/dcpdiff "$@"
 else
     build/tools/dcpdiff "$@"