Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

install-binary.sh will not run due to unbound variable #94

Open
spuder opened this issue Jan 23, 2019 · 1 comment
Open

install-binary.sh will not run due to unbound variable #94

spuder opened this issue Jan 23, 2019 · 1 comment

Comments

@spuder
Copy link

spuder commented Jan 23, 2019

If you try and install in a docker container (e.g. alpine), you will get this error

docker run -it --rm alpine bash
wget -q  https://raw.githubusercontent.com/futuresimple/helm-secrets/master/install-binary.sh
chmod +x ./install-binary.sh
./install-binary.sh
bash: line 18: HELM_BIN: unbound variable

This is because the script is running with set -u.

How are others automating the installation?

@spuder
Copy link
Author

spuder commented Jan 23, 2019

work around

export HELM_BIN=$(which helm)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant