mirror of
https://github.com/gaschz/qubes-pass.git
synced 2025-03-01 14:22:31 +01:00
Fix processing of options again.
This commit is contained in:
parent
e2280ad7b8
commit
c749093f91
18
bin/qvm-pass
18
bin/qvm-pass
@ -40,8 +40,11 @@ multiline=0
|
|||||||
echo=0
|
echo=0
|
||||||
nosymbols=
|
nosymbols=
|
||||||
|
|
||||||
while getopts :d:n:mfe? opt ; do
|
TEMP=`getopt -o d:n:mfe? -- "$@"` || { usage ; exit 64 ; }
|
||||||
case "$opt" in
|
eval set -- "$TEMP"
|
||||||
|
|
||||||
|
while true ; do
|
||||||
|
case "$1" in
|
||||||
-d)
|
-d)
|
||||||
case "$2" in
|
case "$2" in
|
||||||
"") shift 2 ;;
|
"") shift 2 ;;
|
||||||
@ -55,15 +58,8 @@ while getopts :d:n:mfe? opt ; do
|
|||||||
force=1 ; shift ;;
|
force=1 ; shift ;;
|
||||||
-e)
|
-e)
|
||||||
echo=1 ; shift ;;
|
echo=1 ; shift ;;
|
||||||
":")
|
--)
|
||||||
echo "incorrect usage; run with -? for more information" ; exit 64 ;;
|
shift ; break ;;
|
||||||
"?")
|
|
||||||
if [ "$OPTARG" != "?" ] ; then
|
|
||||||
usage ; exit 64 ;
|
|
||||||
else
|
|
||||||
usage ; exit 0 ;
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user