Add setopt nomatch

This commit is contained in:
root
2022-08-30 00:56:27 +00:00
parent 518c67725c
commit a41f19ab2b

View File

@ -5,10 +5,14 @@
TOOLKIT=/etc/toolkit
setopt +o nomatch
load_scripts_in_dir() {
for sh in ${TOOLKIT}/sh/custom/*.sh; do
test -r "$sh" && . "$sh"
done
if [[ -d $1 ]]; then
for sh in $1/*.sh; do
test -r "$sh" && . "$sh"
done
fi
}
create_dir_if_not_exists() {