Add '--' option for passing extra arguments to the test.
This commit is contained in:
parent
e8ccafe4f7
commit
3efdf38fcd
|
@ -72,10 +72,14 @@ while [ "$#" != 0 ]; do
|
||||||
;;
|
;;
|
||||||
-T)
|
-T)
|
||||||
shift; topobjdir="$1"
|
shift; topobjdir="$1"
|
||||||
if [ -d "$topobjdir" ]; then :; else usage; fi
|
if [ ! -d "$topobjdir" ]; then usage; fi
|
||||||
|
;;
|
||||||
|
--)
|
||||||
|
break
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
infile="$1"
|
infile="$1"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
@ -90,9 +94,8 @@ fi
|
||||||
|
|
||||||
# check/detect topobjdir
|
# check/detect topobjdir
|
||||||
if [ -n "$topobjdir" ]; then
|
if [ -n "$topobjdir" ]; then
|
||||||
if [ -f "$topobjdir/server/wineserver" ]
|
if [ ! -f "$topobjdir/server/wineserver" ]
|
||||||
then :
|
then
|
||||||
else
|
|
||||||
echo "Wrong -T argument, $topobjdir/server/wineserver does not exist" 2>&1
|
echo "Wrong -T argument, $topobjdir/server/wineserver does not exist" 2>&1
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue