cleaned up behavior when no custom files are defined yet.
authorFred T. Hamster <fred@gonzomar.gruntose.blurgh>
Thu, 9 Feb 2012 00:38:29 +0000 (19:38 -0500)
committerFred T. Hamster <fred@gonzomar.gruntose.blurgh>
Thu, 9 Feb 2012 00:38:29 +0000 (19:38 -0500)
scripts/core/unter_alia.sh
scripts/core/variables.sh

index 428ece0b1df21cc8c608d8f40db667fcdf6bb4c6..dbf788ff2cd79beb488392b030e781eb3e1e9c21 100644 (file)
@@ -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
index 36069c07b3f62f2a20b891b73baaf6c1645d43d8..1894686c365b9de4159848827b3af1c3a5546420 100644 (file)
@@ -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