Skip to content

Commit 5e007d6

Browse files
authored
Fix detailed error codes on Windows
Switches from Powershell to cmd since Powershell hides the original exit code.
1 parent d79f710 commit 5e007d6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plugin.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ description: "Preview helm upgrade changes as a diff"
77
useTunnel: true
88
platformCommand:
99
- command: ${HELM_PLUGIN_DIR}/bin/diff
10+
# powershell does not return the original exit code, while cmd does
11+
# see https://github.com/databus23/helm-diff/issues/910
1012
- os: windows
11-
command: pwsh
13+
command: cmd
1214
args:
13-
- -Command
14-
- "& (Join-Path -Path (Get-ChildItem env:HELM_PLUGIN_DIR).value -ChildPath 'bin\\diff')"
15+
- /c
16+
- "%HELM_PLUGIN_DIR%/bin/diff"
1517

1618
platformHooks:
1719
install:

0 commit comments

Comments
 (0)