Skip to content

Commit

Permalink
Merge pull request #25 from wtanaka/dev
Browse files Browse the repository at this point in the history
Fix syntax for "[" command
  • Loading branch information
neillturner authored Feb 11, 2017
2 parents 3a7f21b + 9474ede commit 3731da1
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 3731da1

Please sign in to comment.