small logging fixes
This commit is contained in:
parent
56e234756e
commit
fe9c357cd9
@ -23,15 +23,15 @@ function zconfigs_load()
|
||||
function zconfigs_local_load()
|
||||
{
|
||||
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}
|
||||
cp ${zconfig_shared_path}/zshconfig.example ${zconfig_local_path}/local.config.zsh
|
||||
fi
|
||||
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}
|
||||
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;
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user