Skip to content

Commit 12ce189

Browse files
committed
using 'exit' here did close my shell on error, replace by 'break' to just quit the script
1 parent 6d315d2 commit 12ce189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Binary Wrapper/Get-ESSearchResult.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function Get-ESSearchResult {
5050
$esPath = 'C:\Program Files*\es\es.exe'
5151
if (!(Resolve-Path $esPath) -or !(Test-Path (Resolve-Path $esPath).Path)){
5252
Write-Warning "Everything commandline es.exe could not be found on the system please download and install via http://www.voidtools.com/es.zip"
53-
exit
53+
break
5454
}
5555
$result = & (Resolve-Path $esPath).Path $SearchTerm
5656
if($result.Count -gt 1){

0 commit comments

Comments
 (0)