diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-05 20:43:41 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-05 20:43:41 -0500 |
commit | 0ab5354f379e27ad863903953044a41382ad50a6 (patch) | |
tree | 3fb2878061b9d102ba5b96f65f91ee439a968c7d /src/librefetch | |
parent | e6a70164f89ee5e8571b6b485fda9262a9d16991 (diff) |
librefetch: parse an '--' argument correctly
Diffstat (limited to 'src/librefetch')
-rwxr-xr-x | src/librefetch/librefetch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch index 819a51a..c723721 100755 --- a/src/librefetch/librefetch +++ b/src/librefetch/librefetch @@ -208,6 +208,7 @@ parse_options() { -P|--print) mode=print;; -p) BUILDFILE="$(readlink -m -- "$opt")";; -h|--help) mode=help;; + --) shift; break;; -*) if in_array "${arg}" "${makepkg_argall[@]}"; then makepkg_opts+=("$arg") @@ -217,7 +218,6 @@ parse_options() { return 1 fi ;; - --) shift; break;; *) extra_opts+=("$arg");; esac shift |