Tinkerbell.Sandbox/deploy/compose/manifests/exec_in_bash.sh
Jacob Weinstock b3726acedf Move all glue scripts to bash:
By using `/usr/bin/env sh` I needed to ignore some
shell checks. By moving to bash, those shell checks can
be re-enabled.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
2021-08-19 11:03:31 -06:00

21 lines
433 B
Bash
Executable File

#!/usr/bin/env sh
# This script is needed because we prefer bash scripts but
# the pre-built tink-worker container image is alpine and does not
# have bash naively installed.
set -x
# install_bash install bash, needed when running this script in an Alpine container, like tink-worker image
install_bash() {
apk update
apk add bash
}
# main runs the functions
main() {
install_bash
bash "${GLUE_SCRIPT_NAME}" "$@"
}
main "$@"