From 3a47ddf1f6f3abcc321a656de02ec3696a5da182 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 12 Nov 2014 22:43:55 +0100 Subject: [PATCH] Fixed use with one argument and no explicit output file --- tests/cpp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cpp.sh b/tests/cpp.sh index b77cec6..39c455f 100755 --- a/tests/cpp.sh +++ b/tests/cpp.sh @@ -65,7 +65,7 @@ if [ $# -eq 1 -a -n "$output" ]; then target="$1" LD_LIBRARY_PATH="../src" $CPP "$target" > "$output" -elif [ $# -gt 1 -a -z "$output" ]; then +elif [ $# -ge 1 -a -z "$output" ]; then while [ $# -gt 0 ]; do target="$1" output="${target%.cpp}.o"