Skip to content

Commit

Permalink
Make command compatible with ZSH
Browse files Browse the repository at this point in the history
This change makes the commands run by the provisioner compatible with
ZSH. This change fixes compatibility with targets where ZSH is the
default shell.

Fixes #308
  • Loading branch information
Brandon McNama committed Nov 5, 2020
1 parent fa49cae commit 76078f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kitchen/provisioner/ansible_playbook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def prepare_command
commands = []

commands << [
"if [ $(uname -s) == 'FreeBSD' ]; then ETC_ANSIBLE='/usr/local/etc/ansible'; else ETC_ANSIBLE='/etc/ansible'; fi"
"if [ $(uname -s) = 'FreeBSD' ]; then ETC_ANSIBLE='/usr/local/etc/ansible'; else ETC_ANSIBLE='/etc/ansible'; fi"
]
# Prevent failure when ansible package installation doesn't contain /etc/ansible
commands << [
Expand Down

0 comments on commit 76078f2

Please sign in to comment.