vmware-archive / helm-crd

Experimental CRD controller for managing Helm releases
Apache License 2.0
100 stars 13 forks source link

Fix helm init due to syntax error #17

Closed aruiz14 closed 6 years ago

aruiz14 commented 6 years ago

Following the installation instructions, I get the following error

$ kubectl plugin helm init
./helm: line 61: syntax error near unexpected token `}'
error: exit status 2
anguslees commented 6 years ago

Oh wow, apparently bash parses nested heredocs differently to dash. The following is a parse error on bash:

foo=$(cat <<EOF)
xyzzy
EOF

(I recall thinking about this at the time, but mustn't have actually tested)

Thanks for the patch. I see there are more issues with this part of the shell script however (honestly, I must never have tried update). See #18