From: Fred T. Hamster Date: Thu, 9 Feb 2012 00:38:29 +0000 (-0500) Subject: cleaned up behavior when no custom files are defined yet. X-Git-Tag: 2.140.90~1635 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=28ebd73aa6b5ca0335eef32b08da091714293936;p=feisty_meow.git cleaned up behavior when no custom files are defined yet. --- 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