u
This commit is contained in:
parent
466d7e51bf
commit
305faa7fed
@ -39,7 +39,7 @@ page_index=0
|
||||
while true; do
|
||||
page_index=$((page_index+1))
|
||||
results=`curl -L -s "https://registry.hub.docker.com/v2/repositories/$OWNER/$IMAGE/tags?page=$page_index&page_size=$page_size" | jq -r 'select(.results != null) | .results[]["name"]'`
|
||||
if [[ "$?" != 0 || "$results" == "" ]]
|
||||
if [ "$?" != 0 ] or [ "$results" == "" ]
|
||||
then
|
||||
break
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user