aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsum2junit.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sum2junit.sh b/sum2junit.sh
index 155e86ee..a238165a 100755
--- a/sum2junit.sh
+++ b/sum2junit.sh
@@ -14,8 +14,8 @@ else
fi
# Where to put the output file
-if test x"$2" = x; then
- outfile=${outfile}
+if test x"$2" != x; then
+ outfile=$2
else
outfile="/tmp/${outfile}"
fi