From 28ebd73aa6b5ca0335eef32b08da091714293936 Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Wed, 8 Feb 2012 19:38:29 -0500 Subject: [PATCH] cleaned up behavior when no custom files are defined yet. --- scripts/core/unter_alia.sh | 4 +++- scripts/core/variables.sh | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/core/unter_alia.sh b/scripts/core/unter_alia.sh index 428ece0b..dbf788ff 100644 --- a/scripts/core/unter_alia.sh +++ b/scripts/core/unter_alia.sh @@ -21,7 +21,9 @@ ALIAS_DEFINITION_FILES=("$FEISTY_MEOW_SCRIPTS/core/common.alias") # if custom aliases files exist, add them to the list. for i in "$FEISTY_MEOW_GENERATED/custom/*.alias"; do - ALIAS_DEFINITION_FILES+=("$i") + if [ -f "$i" ]; then + ALIAS_DEFINITION_FILES+=("$i") + fi done echo "alias files:" for i in "${ALIAS_DEFINITION_FILES[@]}"; do diff --git a/scripts/core/variables.sh b/scripts/core/variables.sh index 36069c07..1894686c 100644 --- a/scripts/core/variables.sh +++ b/scripts/core/variables.sh @@ -86,6 +86,10 @@ fi # pull in the custom overrides for feisty_meow scripts. for i in $FEISTY_MEOW_GENERATED/custom/*.sh; do + if [ ! -f "$i" ]; then + # skip it if it's not real. + continue; + fi if [ ! -z "$SHELL_DEBUG" ]; then echo "loading customization: $(basename $(dirname $i))/$(basename $i)" fi -- 2.34.1