This commit is contained in:
陆柯 2023-09-26 14:25:25 +08:00
parent ab001c8d5f
commit 000d28f6f6
6 changed files with 2 additions and 6 deletions

View File

@ -39,7 +39,8 @@ 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" == "" ]; then
if [[ $? != 0 || "$results" == "" ]]
then
break
fi
echo "$results"

View File

@ -4,7 +4,6 @@ if [ -d "$1" ]
then
FONPATH=$1
else
echo "××× All testing path failed."
echo ""
echo "=== Enter <fonpath> or leave <blank> for default to '.'"
read -p ">>> " FONPATH

View File

@ -4,7 +4,6 @@ if [ -d "$1" ]
then
FONPATH=$1
else
echo "××× All testing path failed."
echo ""
echo "=== Enter <fonpath> or leave <blank> for default to '.'"
read -p ">>> " FONPATH

View File

@ -4,7 +4,6 @@ if [ -d "$1" ]
then
FONPATH=$1
else
echo "××× All testing path failed."
echo ""
echo "=== Enter <fonpath> or leave <blank> for default to '.'"
read -p ">>> " FONPATH

View File

@ -4,7 +4,6 @@ if [ -d "$1" ]
then
FONPATH=$1
else
echo "××× All testing path failed."
echo ""
echo "=== Enter <fonpath> or leave <blank> for default to '.'"
read -p ">>> " FONPATH

View File

@ -4,7 +4,6 @@ if [ -d "$1" ]
then
FONPATH=$1
else
echo "××× All testing path failed."
echo ""
echo "=== Enter <fonpath> or leave <blank> for default to '.'"
read -p ">>> " FONPATH