From 84a26475f80112f7dc0d45a883c919a5c5063a35 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 4 Nov 2017 19:52:51 -0400 Subject: [PATCH] guarded the active addition by directory presence --- scripts/customize/fred/fred_variables.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/customize/fred/fred_variables.sh b/scripts/customize/fred/fred_variables.sh index 2d2e77ab..ab33a5a3 100644 --- a/scripts/customize/fred/fred_variables.sh +++ b/scripts/customize/fred/fred_variables.sh @@ -16,7 +16,10 @@ if [ -z "$USER_CUSTOMIZATIONS_LOADED" ]; then # add a bunch of personal folders to the list for checkin & checkout. REPOSITORY_LIST+="cloud ebooks web" - REPOSITORY_LIST+="$(find $HOME/active -maxdepth 1 -mindepth 1 -type d)" + # add in any active projects. + if [ -d "$HOME/active" ]; then + REPOSITORY_LIST+="$(find "$HOME/active" -maxdepth 1 -mindepth 1 -type d)" + fi # adds our locally relevant archive folders into the list to be synched. ARCHIVE_COLLECTIONS_LIST+="/z/basement /z/imaginations /z/musix /z/toaster /z/walrus" -- 2.34.1