This is fixed by checking if the file exists before trying to source it.
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
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
CUSTOM="${BASH}/custom/*.bash"
for config_file in $CUSTOM
do
- source $config_file
+ if [ -e "${config_file}" ]; then
+ source $config_file
+ fi
done