Commit 79847221 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: fix parse options after main command

parent f72b22ab
...@@ -476,18 +476,20 @@ done ...@@ -476,18 +476,20 @@ done
FLAGENDOPTS= FLAGENDOPTS=
# NOTE: can't use while read here: set vars inside # NOTE: can't use while read here: set vars inside
for opt in "$@" ; do for opt in "$@" ; do
[ "$opt" = "--" ] && FLAGENDOPTS=1 && continue [ "$opt" = "--" ] && FLAGENDOPTS=1 && continue
if [ -z "$FLAGENDOPTS" ] ; then if [ -z "$FLAGENDOPTS" ] ; then
check_command "$opt" && continue check_command "$opt" && continue
check_option "$opt" && continue check_option "$opt" && continue
fi fi
if [ -n "$direct_args" ] ; then if [ -n "$direct_args" ] ; then
quoted_args="$quoted_args \"$opt\"" quoted_args="$quoted_args \"$opt\""
FLAGENDOPTS=1 else
continue
fi
# Note: will parse all params separately (no package names with spaces!) # Note: will parse all params separately (no package names with spaces!)
check_filenames "$opt" check_filenames "$opt"
fi
done done
# fill # fill
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment