Skip to content

Commit 03d831d

Browse files
authored
fix(install): Don't add to $Error when checking for service cexecsvc (#6520)
1 parent 874e8e6 commit 03d831d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
- **core|manifest:** Avoid error messages when searching non-existent 'deprecated' directory ([#6471](https://github.com/ScoopInstaller/Scoop/issues/6471))
2323
- **path:** Trim ending slash when initializing paths ([#6501](https://github.com/ScoopInstaller/Scoop/issues/6501))
2424
- **checkver:** Allow script to run when URL fetch fails but script exists ([#6490](https://github.com/ScoopInstaller/Scoop/issues/6490))
25+
- **install:** Don't add to `$Error` when checking for service `cexecsvc` ([#6520](https://github.com/ScoopInstaller/Scoop/issues/6520))
2526
- **checkver:** Fix incorrect version returned when script fails without output ([#6547](https://github.com/ScoopInstaller/Scoop/issues/6547))
2627
- **uninstall:** Import `url_filename` from `download.ps1` ([#6530](https://github.com/ScoopInstaller/Scoop/issues/6530))
2728
- **schema:** Add missing `hash.mode` value `github` ([#6533](https://github.com/ScoopInstaller/Scoop/issues/6533))

lib/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ function test_running_process($app, $global) {
557557
# Required to handle docker/for-win#12240
558558
function New-DirectoryJunction($source, $target) {
559559
# test if this script is being executed inside a docker container
560-
if (Get-Service -Name cexecsvc -ErrorAction SilentlyContinue) {
560+
if (Get-Service -Name cexecsvc -ErrorAction Ignore) {
561561
cmd.exe /d /c "mklink /j `"$source`" `"$target`""
562562
} else {
563563
New-Item -Path $source -ItemType Junction -Value $target

0 commit comments

Comments
 (0)