Improve git utilities for non-existent subdirectories
authorHugo Villeneuve <hvilleneuve@addenergie.ca>
Tue, 7 Jan 2020 17:48:36 +0000 (12:48 -0500)
committerHugo Villeneuve <hvilleneuve@addenergie.ca>
Tue, 7 Jan 2020 17:48:36 +0000 (12:48 -0500)
scripts/git-project-clone.sh
scripts/git-project-list.sh

index 4da6c4f..49a40b6 100755 (executable)
@@ -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
index ecbf9b8..0ca38de 100755 (executable)
@@ -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