Accept --options without channel

This commit is contained in:
Ben Peddell 2020-04-26 09:27:39 +10:00 committed by GitHub
parent 64bf16ce87
commit 996248b10c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ for arg in "$@"; do
--perform-user-install) userinstall2=yes; ;;
--yes-i-really-want-to-perform-a-user-install) userinstall=yes; ;;
*)
if [ -n "$channel" ]; then
if [[ -n "$channel" || "$arg" == --* ]]; then
args+="$arg"
else
channel="$arg"