From: Hugo Villeneuve Date: Tue, 7 Jan 2020 17:48:36 +0000 (-0500) Subject: Improve git utilities for non-existent subdirectories X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=2088f7ccfe5a78c7410a38d725c1ff6884864429;p=hvutilities.git Improve git utilities for non-existent subdirectories --- diff --git a/scripts/git-project-clone.sh b/scripts/git-project-clone.sh index 4da6c4f..49a40b6 100755 --- a/scripts/git-project-clone.sh +++ b/scripts/git-project-clone.sh @@ -116,8 +116,8 @@ while IFS=$'\n' read r ; do # Make sure directory exists if [ ! -d "${r}" ]; then - echo "Missing repos ${r}" - exit 1 + echo "Missing repos ${r}, skipping" + continue fi # Update only git repos @@ -143,8 +143,8 @@ while IFS=$'\n' read r ; do # Make sure directory exists if [ ! -d "${r}" ]; then - echo "Missing repos ${r}" - exit 1 + echo "Missing repos ${r}, skipping" + continue fi # Update only git repos diff --git a/scripts/git-project-list.sh b/scripts/git-project-list.sh index ecbf9b8..0ca38de 100755 --- a/scripts/git-project-list.sh +++ b/scripts/git-project-list.sh @@ -49,8 +49,8 @@ while IFS=$'\n' read r ; do # Make sure directory exists if [ ! -d "${r}" ]; then - echo "Missing repos ${r}" - exit 1 + echo "Missing repos ${r}, skipping" + continue fi # Update only git repos