mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
16 lines
413 B
Bash
Executable File
16 lines
413 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# remove this asdf-exec file when releasing >=0.6.5
|
|
printf "asdf is self upgrading shims to new asdf exec ...\\n"
|
|
|
|
asdf_dir="$(dirname "$(dirname "$(dirname "$0")")")"
|
|
# shellcheck source=lib/utils.bash
|
|
. "$asdf_dir/lib/utils.bash"
|
|
rm "$(asdf_data_dir)"/shims/*
|
|
"$asdf_dir"/bin/asdf reshim
|
|
shim_name=$(basename "$2")
|
|
|
|
printf "asdf: now running %s\\n" "$shim_name"
|
|
|
|
exec "$shim_name" "${@:3}"
|