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
parent
569a7a902e
commit
bd52e16895
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue