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)
|
||||
shift; topobjdir="$1"
|
||||
if [ -d "$topobjdir" ]; then :; else usage; fi
|
||||
if [ ! -d "$topobjdir" ]; then usage; fi
|
||||
;;
|
||||
--)
|
||||
break
|
||||
;;
|
||||
*)
|
||||
infile="$1"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
@ -90,9 +94,8 @@ fi
|
|||
|
||||
# check/detect topobjdir
|
||||
if [ -n "$topobjdir" ]; then
|
||||
if [ -f "$topobjdir/server/wineserver" ]
|
||||
then :
|
||||
else
|
||||
if [ ! -f "$topobjdir/server/wineserver" ]
|
||||
then
|
||||
echo "Wrong -T argument, $topobjdir/server/wineserver does not exist" 2>&1
|
||||
usage
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue