Stop ignoring SC2046
We can use an array construction instead.
@@ -7,16 +7,18 @@ hab pkg exec core/hab-backline mkdir -m 0755 -p /usr/bin
source /etc/habitat-studio/import_keys.sh
source /etc/habitat-studio/environment.sh
+declare -a secrets
+readarray -t secrets < <(load_secrets)
+
case "$1" in
enter)
- # shellcheck disable=SC2046
- hab pkg exec core/hab-backline env STUDIO_ENTER=true $(load_secrets) bash --login +h;;
+ hab pkg exec core/hab-backline env STUDIO_ENTER=true "${secrets[@]}" bash --login +h;;
build)
shift
hab pkg exec core/hab-plan-build hab-plan-build "$@";;
run)
shift
- # shellcheck disable=SC2046
- hab pkg exec core/hab-backline env $(load_secrets) bash --login -c "$@";;
- *) echo "Unknown Studio Command" && exit 1;;
+ hab pkg exec core/hab-backline env "${secrets[@]}" bash --login -c "$@";;
+ *)
+ echo "Unknown Studio Command" && exit 1;;
esac
