cellinfo
/
puppet-root
Archived
2
0
포크 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
부모 493b968a5f
커밋 1efcc0d2d1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -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