summaryrefslogtreecommitdiff
path: root/spec/support/platform_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r--spec/support/platform_helpers.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index 51a9299497..60990f73a5 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -243,5 +243,10 @@ end
def choco_installed?
result = ShellHelpers.powershell_out("choco --version")
- result.stderr.empty? ? true : false
+ result.stderr.empty?
+end
+
+def pwsh_installed?
+ result = ShellHelpers.powershell_out("pwsh.exe --version")
+ result.stderr.empty?
end