SHA256
fix argument iteration
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ function download_files() {
|
|||||||
local query_params=''
|
local query_params=''
|
||||||
[ -n "$GIT_TAG" ] && query_params="?ref=$GIT_TAG"
|
[ -n "$GIT_TAG" ] && query_params="?ref=$GIT_TAG"
|
||||||
|
|
||||||
while [ -n "$1" ]; do
|
while (( $# > 0 )); do
|
||||||
path=$1
|
path=$1
|
||||||
shift
|
shift
|
||||||
curl -s --output-dir "$TMPDIR/" --remote-name "$API_ENDPOINT/raw/$path$query_params"
|
curl -s --output-dir "$TMPDIR/" --remote-name "$API_ENDPOINT/raw/$path$query_params"
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ function arr_contains() {
|
|||||||
local search=$1
|
local search=$1
|
||||||
shift
|
shift
|
||||||
[ -z "$search" ] && return 1
|
[ -z "$search" ] && return 1
|
||||||
while [ -n "$1" ]; do
|
while (( $# > 0 )); do
|
||||||
[ "$1" == "$search" ] && return 0
|
[ "$1" == "$search" ] && return 0
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
@@ -209,7 +209,7 @@ action=''
|
|||||||
cfgfile="$ETC_DIR/config"
|
cfgfile="$ETC_DIR/config"
|
||||||
args=()
|
args=()
|
||||||
|
|
||||||
while [ -n "$1" ]; do
|
while (( $# > 0 )); do
|
||||||
opt=$1
|
opt=$1
|
||||||
shift
|
shift
|
||||||
if [ -z "$action" ]; then
|
if [ -z "$action" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user