Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for issue 83 #84

Merged
merged 1 commit into from

2 participants

@jpschewe

This is fixed by checking if the file exists before trying to source it.

@jpschewe jpschewe Remove error message when enabled directory is empty
This is fixed by checking if the file exists before trying to source it.
7d18ccc
@tswicegood
Owner

Nice catch -- thanks!

@tswicegood tswicegood merged commit ea131c8 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 10, 2011
  1. @jpschewe

    Remove error message when enabled directory is empty

    jpschewe authored
    This is fixed by checking if the file exists before trying to source it.
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 3 deletions.
  1. +9 −3 bash_it.sh
View
12 bash_it.sh
@@ -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
Something went wrong with that request. Please try again.