Skip to content

Commit

Permalink
Fix syntax for "[" command
Browse files Browse the repository at this point in the history
  • Loading branch information
wtanaka committed Feb 5, 2017
1 parent 3a7f21b commit 6246275
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/kitchen/verifier/serverspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ def install_command
def install_bundler
if config[:remote_exec]
<<-INSTALL
if [ \"$(#{sudo('gem')} list bundler -i)\" == \"true\" ]; then
if [ \"$(#{sudo('gem')} list bundler -i)\" = \"true\" ]; then
echo "Bundler already installed"
else
if [ \"$(#{sudo('gem')} list bundler -i)\" == \"false\" ]; then
if [ \"$(#{sudo('gem')} list bundler -i)\" = \"false\" ]; then
#{sudo_env('gem')} install #{gem_proxy_parm} --no-ri --no-rdoc bundler
else
echo "ERROR: Ruby not installed correctly"
Expand Down Expand Up @@ -266,7 +266,7 @@ def remove_default_path
end

def test_serverspec_installed
config[:test_serverspec_installed] ? "if [ \"$(#{sudo('gem')} list serverspec -i)\" == \"false\" ]; then" : nil
config[:test_serverspec_installed] ? "if [ \"$(#{sudo('gem')} list serverspec -i)\" = \"false\" ]; then" : nil
end

def fi_test_serverspec_installed
Expand Down

0 comments on commit 6246275

Please sign in to comment.