small logging fixes

This commit is contained in:
accel 2022-01-11 20:01:52 +03:00
parent 56e234756e
commit fe9c357cd9

View File

@ -23,15 +23,15 @@ function zconfigs_load()
function zconfigs_local_load() function zconfigs_local_load()
{ {
if [[ ! -a ${zconfig_local_path} ]]; then if [[ ! -a ${zconfig_local_path} ]]; then
zshlibs_log $0 "local config missing, recreating from '${zconfig_shared_path}/zshconfig.example'" zshlibs_log zconfig "local config missing, recreating from '${zconfig_shared_path}/zshconfig.example'"
mkdir -p -m 700 ${zconfig_local_path} mkdir -p -m 700 ${zconfig_local_path}
cp ${zconfig_shared_path}/zshconfig.example ${zconfig_local_path}/local.config.zsh cp ${zconfig_shared_path}/zshconfig.example ${zconfig_local_path}/local.config.zsh
fi fi
if [[ ! -d ${zconfig_local_path} ]]; then if [[ ! -d ${zconfig_local_path} ]]; then
zshlibs_log zconfigs "local config appears to be a file, loading '${zconfig_local_path}'" zshlibs_log zconfig "local config appears to be a file, loading '${zconfig_local_path}'"
zconfig_checkload ${zconfig_local_path} zconfig_checkload ${zconfig_local_path}
else else
zshlibs_log zconfigs "local config is a directory, loading '${zconfig_local_path}/*.config.zsh'" zshlibs_log zconfig "local config is a directory, loading '${zconfig_local_path}/*.config.zsh'"
zconfigs_load ${zconfig_local_path}/*.config.zsh; zconfigs_load ${zconfig_local_path}/*.config.zsh;
fi fi
} }