Add setopt nomatch
This commit is contained in:
10
sh/load.sh
10
sh/load.sh
@ -5,10 +5,14 @@
|
|||||||
|
|
||||||
TOOLKIT=/etc/toolkit
|
TOOLKIT=/etc/toolkit
|
||||||
|
|
||||||
|
setopt +o nomatch
|
||||||
|
|
||||||
load_scripts_in_dir() {
|
load_scripts_in_dir() {
|
||||||
for sh in ${TOOLKIT}/sh/custom/*.sh; do
|
if [[ -d $1 ]]; then
|
||||||
test -r "$sh" && . "$sh"
|
for sh in $1/*.sh; do
|
||||||
done
|
test -r "$sh" && . "$sh"
|
||||||
|
done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
create_dir_if_not_exists() {
|
create_dir_if_not_exists() {
|
||||||
|
Reference in New Issue
Block a user