Skip to content

Commit

Permalink
Support spaces in directories
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke committed Apr 22, 2022
1 parent 1d8c5bb commit 41132a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ platformCommand:
command: "cmd /c $HELM_PLUGIN_DIR\\scripts\\wrapper\\sh.cmd $HELM_PLUGIN_DIR\\scripts\\run.sh"

downloaders:
- command: "scripts/run.sh downloader"
- command: "scripts/wrapper/run.cmd scripts/run.sh downloader"
protocols:
- "sops"
- "secret"
Expand Down
4 changes: 3 additions & 1 deletion scripts/wrapper/run.cmd
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
:; cd "$HELM_PLUGIN_DIR" #
:; exec "$@" #
:; exit $? #

:: .bat bash hybrid script
:: https://stackoverflow.com/a/17623721

@echo off
%HELM_PLUGIN_DIR%\scripts\wrapper\sh.cmd %*
cd "%HELM_PLUGIN_DIR%"
scripts\wrapper\sh.cmd %*
exit /b %errorlevel%

0 comments on commit 41132a2

Please sign in to comment.