fix config generation

This commit is contained in:
accel 2022-01-31 18:01:32 +03:00
parent b0c39bbeb3
commit f00c3bcc22

View File

@ -93,7 +93,10 @@ function zssh_process()
if [[ ${#zssh_host_config_accesses} -gt 0 ]]
then
zshlibs_log zssh_server "processing ssh server setup"
if [[ "${HOME}/.config/zsh/local.config.zsh" -nt $(zssh_host_info -c) ]]
# - if there is no generated ssh config,
# - if local config not older than (means newer than) generated config
# then generate ssh config
if ! [[ "${HOME}/.config/zsh/local.config.zsh" -ot $(zssh_host_info -c) ]]
then
zshlibs_log zssh_server "publishing our configs …"
zssh_publish_configs