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"
This commit is contained in:
Kevin Glowacz
2016-09-22 10:55:22 -05:00
parent 569a7a902e
commit bd52e16895

View File

@@ -1,17 +1,16 @@
# Helper function loading various enable-able files # Helper function loading various enable-able files
function _load_bash_it_files() { function _load_bash_it_files() {
subdirectory="$1" subdirectory="$1"
if [ ! -d "${BASH_IT}/${subdirectory}/enabled" ] if [ -d "${BASH_IT}/${subdirectory}/enabled" ]
then 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 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 # Function for reloading aliases