[rt46602] Assign default values to variables set by command line options and consistently treat them as integers

This commit is contained in:
Michał Kępień
2018-01-25 12:13:19 +01:00
committed by Stephen Morris
parent 1960de5530
commit fe51c34df3
2 changed files with 6 additions and 2 deletions

View File

@@ -24,6 +24,8 @@
SYSTEMTESTTOP=.
. $SYSTEMTESTTOP/conf.sh
keepfile=0
while getopts "n" flag; do
case $flag in
n) keepfile=1 ;;
@@ -32,7 +34,7 @@ while getopts "n" flag; do
done
cat */test.output > systests.output 2> /dev/null
if [ "$keepfile" = "" ]; then
if [ $keepfile -eq 0 ]; then
rm -f */test.output
fi