Skip to content

Commit

Permalink
Fix typo in powershell executable name (Powershell 7) (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
131 committed Dec 2, 2020
1 parent 06b2a4a commit 99ce9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webdrivers/chrome_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def linux_location
end

def win_version(location)
System.call("pswh.exe -command \"(Get-ItemProperty '#{location}').VersionInfo.ProductVersion\"")&.strip
System.call("pwsh.exe -command \"(Get-ItemProperty '#{location}').VersionInfo.ProductVersion\"")&.strip
rescue StandardError
System.call("powershell.exe \"(Get-ItemProperty '#{location}').VersionInfo.ProductVersion\"")&.strip
end
Expand Down

0 comments on commit 99ce9b9

Please sign in to comment.