Skip to content

Commit

Permalink
align env CHROME_VERSION with the output of command `google-chrome
Browse files Browse the repository at this point in the history
--version`
  • Loading branch information
ichylinux committed May 31, 2021
1 parent fb3c4c6 commit 2dacde5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/itamae/plugin/recipe/selenium/chrome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
user 'root'
end
else
execute "yum install -y https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-#{ENV['CHROME_VERSION']}.x86_64.rpm" do
execute "yum install -y https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-#{ENV['CHROME_VERSION']}-1.x86_64.rpm" do
user 'root'
not_if "which google-chrome-stable && google-chrome-stable --version | cut -d ' ' -f 3 | egrep \"^#{ENV['CHROME_VERSION']}$\""
end
end

Expand Down

0 comments on commit 2dacde5

Please sign in to comment.