asdf-nodejs/bin/postinstall

11 lines
362 B
Plaintext
Raw Normal View History

2015-12-23 00:19:24 +08:00
#!/usr/bin/env bash
# shellcheck source=../lib/utils.sh
source "$(dirname "$0")/../lib/utils.sh"
if [ "$ASDF_SKIP_RESHIM" == "1" ]; then
echo "Run 'asdf reshim $(plugin_name) ${ASDF_INSTALL_VERSION:-$npm_config_node_version}' after installing the packages to reshim"
else
asdf reshim "$(plugin_name)" "${ASDF_INSTALL_VERSION:-$npm_config_node_version}"
fi