asdf/bin/private/asdf-exec

16 lines
413 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# remove this asdf-exec file when releasing >=0.6.5
2020-09-21 15:27:52 -07:00
printf "asdf is self upgrading shims to new asdf exec ...\\n"
2015-05-14 18:06:17 -07:00
asdf_dir="$(dirname "$(dirname "$(dirname "$0")")")"
# shellcheck source=lib/utils.bash
2021-05-21 09:03:06 -07:00
. "$asdf_dir/lib/utils.bash"
rm "$(asdf_data_dir)"/shims/*
"$asdf_dir"/bin/asdf reshim
shim_name=$(basename "$2")
2015-05-10 10:25:42 -07:00
2020-09-21 15:27:52 -07:00
printf "asdf: now running %s\\n" "$shim_name"
exec "$shim_name" "${@:3}"