From b7b66453d564a5f99fcf8784644e9da194b50cb4 Mon Sep 17 00:00:00 2001 From: Botspot Date: Thu, 9 Sep 2021 15:21:15 -0500 Subject: [PATCH] api: wget(): check for flags matching '-' --- api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api b/api index 9e1ba15..9a3f4fc 100755 --- a/api +++ b/api @@ -505,7 +505,7 @@ wget() { #this function intercepts all wget commands being used in app scripts. local IFS=$'\n' local opts="$(IFS=$'\n'; echo "$*")" for opt in $opts ;do - if [[ "$opt" == '-'* ]]; then + if [[ "$opt" == '-'* ]] || [ "$opt" == '-' ];then #this opt is the beginning of a flag if [ "$opt" == '-qO' ] || [ "$opt" == '-O' ] || [ "$opt" == '-q' ]; then true