From e279fcbf0c7e9910d6bbc19cafd012ebc6cb5931 Mon Sep 17 00:00:00 2001 From: Luke Sampson Date: Thu, 15 Aug 2013 21:47:33 +1000 Subject: [PATCH] fix in for loop leaking into outer scope --- libexec/scoop-install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/scoop-install.ps1 b/libexec/scoop-install.ps1 index 01d10afb..a310944d 100644 --- a/libexec/scoop-install.ps1 +++ b/libexec/scoop-install.ps1 @@ -48,8 +48,8 @@ if(installed $app) { # check 7zip installed if required if(!(7zip_installed)) { - foreach($url in @($manifest.url)) { - if(requires_7zip $url) { + foreach($dlurl in @($manifest.url)) { + if(requires_7zip $dlurl) { abort "7zip is required to install this app. please run 'scoop install 7zip'" } }