Skip to content

Commit

Permalink
fixinstallation and activation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
gdecicco committed Apr 21, 2024
1 parent 54940a1 commit 1ab9d55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions bin/exec-env
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
# asdf exec <command> [args...]: Executes the command shim for current version
# asdf env <command> [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
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit 1ab9d55

Please sign in to comment.