helm-secrets icon indicating copy to clipboard operation
helm-secrets copied to clipboard

Has windows line endings. This is a bash script.

Open mehemken opened this issue 6 years ago • 2 comments

This is a bash script with Windows line endings. Why?

➜  helm secrets version
/usr/bin/env: ‘bash\r’: No such file or directory
Error: plugin "secrets" exited with error

mehemken avatar Jan 29 '19 21:01 mehemken

Ran that on all the shell scripts. Installation worked.

sed -i 's/\r$//' scriptname.sh

mehemken avatar Jan 29 '19 21:01 mehemken

I was having this problem in Ubuntu shell on Windows 10 but I found a workaround. I tried to install it - it failed. I then ran dos2unix on ~/.helm/plugins/secrets/install-binary.sh and secrets.sh and ran:

helm plugin update secrets

and it worked.

markmclaren avatar May 01 '19 09:05 markmclaren