This commit is contained in:
陆柯 2023-09-26 14:31:30 +08:00
parent 466d7e51bf
commit 305faa7fed

View File

@ -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