Remove `continue` from conditional

This is an artifact left over from when this function was extracted from
inside a loop b524bb6047

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"
pull/789/head
Kevin Glowacz 2016-09-22 10:55:22 -05:00
parent 569a7a902e
commit bd52e16895
No known key found for this signature in database
GPG Key ID: 86A40F93FD968390
1 changed files with 8 additions and 9 deletions

View File

@ -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