From 2088f7ccfe5a78c7410a38d725c1ff6884864429 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Tue, 7 Jan 2020 12:48:36 -0500 Subject: [PATCH] Improve git utilities for non-existent subdirectories --- scripts/git-project-clone.sh | 8 ++++---- scripts/git-project-list.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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 -- 2.20.1