Remove error message when enabled directory is empty

This is fixed by checking if the file exists before trying to source it.
This commit is contained in:
Jon Schewe
2011-10-09 20:44:29 -05:00
parent 8c98ddc03a
commit 7d18cccae9

View File

@@ -14,7 +14,9 @@ source "${BASH}/themes/base.theme.bash"
LIB="${BASH}/lib/*.bash"
for config_file in $LIB
do
source $config_file
if [ -e "${config_file}" ]; then
source $config_file
fi
done
# Load enabled aliases, completion, plugins
@@ -27,7 +29,9 @@ do
FILES="${BASH}/${file_type}/enabled/*.bash"
for config_file in $FILES
do
source $config_file
if [ -e "${config_file}" ]; then
source $config_file
fi
done
done
@@ -41,7 +45,9 @@ fi
CUSTOM="${BASH}/custom/*.bash"
for config_file in $CUSTOM
do
source $config_file
if [ -e "${config_file}" ]; then
source $config_file
fi
done