commit eb2c9938ae170430d49e4efb2bfc03f057c0f2da
parent f3278ef535b580708071896641c50249e5b761f0
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Wed, 27 Jul 2022 02:56:45 +0200
Fix the deployment ssh key comment string grep
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/static/etc/zsh/zshrc.d/90_warn_deploy_ssh_key.zsh b/static/etc/zsh/zshrc.d/90_warn_deploy_ssh_key.zsh
@@ -3,7 +3,7 @@
local files warn='%K{yellow}%F{black}WARNING%k%f'
local -a pubkeys=( /etc/ssh/ssh_host_*_key.pub(N) )
(($#pubkeys)) || return 0
- files=$(grep -l replace_me@deploy $pubkeys) || return 0
+ files=$(grep -l change_me@deploy $pubkeys) || return 0
printf >&2 "%s\n" "${(%)warn} There are shared deployment ssh host keys in $files; please remove them and create fresh set of keys."
}
# vim: set ft=zsh ts=4: