diff --git a/bin/exec-env b/bin/exec-env index 01dbb8d..6dd7887 100755 --- a/bin/exec-env +++ b/bin/exec-env @@ -14,10 +14,9 @@ # asdf exec [args...]: Executes the command shim for current version # asdf env [util]: Runs util (default: env) inside the environment used for command shim execution. -setup_plugin_usage() { - echo "here we need to enable the use of this pecific version of helm plugin" - helm plugin uninstall helm-secrets - helm plugin install "${ASDF_INSTALL_PATH}" +setup_helm_plugin_usage() { + helm plugin uninstall secrets >>/dev/null 2>&1 || true + ln -s "${ASDF_INSTALL_PATH}/bin" $(helm env HELM_PLUGINS)/helm-secrets } -setup_plugin_usage +setup_helm_plugin_usage diff --git a/lib/utils.bash b/lib/utils.bash index 6d0798e..3d826c3 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -63,7 +63,7 @@ install_version() { # TODO: Assert helm-secrets executable exists. local tool_cmd - tool_cmd="$(echo "$TOOL_TEST" | cut -d' ' -f1)" + tool_cmd="scripts/run.sh" test -x "$install_path/$tool_cmd" || fail "Expected $install_path/$tool_cmd to be executable." echo "$TOOL_NAME $version installation was successful!"