From e56b837e637fe4566e22f9c5b63432b8532bf593 Mon Sep 17 00:00:00 2001 From: Eric Loveland Date: Tue, 23 Jul 2013 17:33:43 -0400 Subject: [PATCH] fix: VBoxManage - don't fail when not in PATH - Test-Path throws when its arg is $null --- VirtualBox.ExtensionPack/tools/chocolateyInstall.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VirtualBox.ExtensionPack/tools/chocolateyInstall.ps1 b/VirtualBox.ExtensionPack/tools/chocolateyInstall.ps1 index 22b3b0a..2477199 100644 --- a/VirtualBox.ExtensionPack/tools/chocolateyInstall.ps1 +++ b/VirtualBox.ExtensionPack/tools/chocolateyInstall.ps1 @@ -19,7 +19,7 @@ try { $vboxManage = (Which VBoxManage), $vboxManageDefault | - ? { Test-Path $_ } | + ? { $_ -and { Test-Path $_ } } | Select -First 1 if (!$vboxManage)