Verify if zsh is available on the system before launch
This commit is contained in:
parent
493b968a5f
commit
1efcc0d2d1
|
@ -10,7 +10,7 @@ fi
|
||||||
IP_ZSH="<%= scope.lookupvar('root::ip_zsh') %>"
|
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
|
exec zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Reference in New Issue