cellinfo
/
puppet-root
Archived
2
0
Fork 0

Verify if zsh is available on the system before launch

This commit is contained in:
Jeremy Gardais 2016-11-28 15:06:53 +01:00
parent 493b968a5f
commit 1efcc0d2d1
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ fi
IP_ZSH="<%= scope.lookupvar('root::ip_zsh') %>"
if [ "$(echo "${SSH_CLIENT}" | grep -E "${IP_ZSH}")" ]; then
if [ "$(echo "${SSH_CLIENT}" | grep -E "${IP_ZSH}")" ] && [ $(command -v zsh) ]; then
exec zsh
fi