diff --git a/docker-search-tags.sh b/docker-search-tags.sh index b5c1eac..68a6e05 100755 --- a/docker-search-tags.sh +++ b/docker-search-tags.sh @@ -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" diff --git a/git-pull-tree.sh b/git-pull-tree.sh index ebd044b..0c94c15 100755 --- a/git-pull-tree.sh +++ b/git-pull-tree.sh @@ -4,7 +4,6 @@ if [ -d "$1" ] then FONPATH=$1 else - echo "××× All testing path failed." echo "" echo "=== Enter or leave for default to '.'" read -p ">>> " FONPATH diff --git a/git-push-tree.sh b/git-push-tree.sh index 4102a0d..d89f263 100755 --- a/git-push-tree.sh +++ b/git-push-tree.sh @@ -4,7 +4,6 @@ if [ -d "$1" ] then FONPATH=$1 else - echo "××× All testing path failed." echo "" echo "=== Enter or leave for default to '.'" read -p ">>> " FONPATH diff --git a/git-rename-branch.sh b/git-rename-branch.sh index 08f2cdb..19ff613 100755 --- a/git-rename-branch.sh +++ b/git-rename-branch.sh @@ -4,7 +4,6 @@ if [ -d "$1" ] then FONPATH=$1 else - echo "××× All testing path failed." echo "" echo "=== Enter or leave for default to '.'" read -p ">>> " FONPATH diff --git a/npm-boot-tree.sh b/npm-boot-tree.sh index 0ee1726..7775d4d 100755 --- a/npm-boot-tree.sh +++ b/npm-boot-tree.sh @@ -4,7 +4,6 @@ if [ -d "$1" ] then FONPATH=$1 else - echo "××× All testing path failed." echo "" echo "=== Enter or leave for default to '.'" read -p ">>> " FONPATH diff --git a/seafile-ignore-tree.sh b/seafile-ignore-tree.sh index b77fdf5..13a0d36 100755 --- a/seafile-ignore-tree.sh +++ b/seafile-ignore-tree.sh @@ -4,7 +4,6 @@ if [ -d "$1" ] then FONPATH=$1 else - echo "××× All testing path failed." echo "" echo "=== Enter or leave for default to '.'" read -p ">>> " FONPATH