summaryrefslogtreecommitdiff
path: root/src/librefetch
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-05 20:43:41 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-05 20:43:41 -0500
commit0ab5354f379e27ad863903953044a41382ad50a6 (patch)
tree3fb2878061b9d102ba5b96f65f91ee439a968c7d /src/librefetch
parente6a70164f89ee5e8571b6b485fda9262a9d16991 (diff)
librefetch: parse an '--' argument correctly
Diffstat (limited to 'src/librefetch')
-rwxr-xr-xsrc/librefetch/librefetch2
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