Skip to content

Commit

Permalink
Remove continue from conditional
Browse files Browse the repository at this point in the history
This is an artifact left over from when this function was extracted from
inside a loop b524bb6

However, `continue` isn't doing anything when not inside a loop and this
now raises a warning in bash 4.4:

"continue: only meaningful in a `for', `while', or `until' loop"
  • Loading branch information
kjg committed Sep 22, 2016
1 parent 569a7a9 commit bd52e16
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions lib/helpers.bash
@@ -1,17 +1,16 @@
# Helper function loading various enable-able files
function _load_bash_it_files() {
subdirectory="$1"
if [ ! -d "${BASH_IT}/${subdirectory}/enabled" ]
if [ -d "${BASH_IT}/${subdirectory}/enabled" ]
then
continue
FILES="${BASH_IT}/${subdirectory}/enabled/*.bash"
for config_file in $FILES
do
if [ -e "${config_file}" ]; then
source $config_file
fi
done
fi
FILES="${BASH_IT}/${subdirectory}/enabled/*.bash"
for config_file in $FILES
do
if [ -e "${config_file}" ]; then
source $config_file
fi
done
}

# Function for reloading aliases
Expand Down

0 comments on commit bd52e16

Please sign in to comment.