asdf/bin/private/asdf-exec
2019-11-29 10:15:38 -06:00

16 lines
399 B
Bash
Executable File

#!/usr/bin/env bash
# remove this asdf-exec file when releasing >=0.6.5
echo "asdf is self upgrading shims to new asdf exec ..."
asdf_dir="$(dirname "$(dirname "$(dirname "$0")")")"
# shellcheck source=lib/utils.sh
source "$asdf_dir/lib/utils.sh"
rm "$(asdf_data_dir)"/shims/*
"$asdf_dir"/bin/asdf reshim
shim_name=$(basename "$2")
echo "asdf: now running $shim_name"
exec "$shim_name" "${@:3}"