From 6aad660cc32986b446fd800d678fd34a77e153f3 Mon Sep 17 00:00:00 2001 From: Iristyle Date: Fri, 19 Jul 2013 03:51:12 -0400 Subject: [PATCH] fix: Erlang16 previous install check --- Erlang16/tools/chocolateyInstall.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Erlang16/tools/chocolateyInstall.ps1 b/Erlang16/tools/chocolateyInstall.ps1 index e0d9a08..50a189f 100644 --- a/Erlang16/tools/chocolateyInstall.ps1 +++ b/Erlang16/tools/chocolateyInstall.ps1 @@ -11,7 +11,7 @@ try { Select -First 1 # only way to test for installation of this version is by path on disk - if (Test-Path $installedPath) + if ($installedPath -and (Test-Path $installedPath)) { Write-Host "$package $version is already installed to $installedPath" }