Skip to content

Commit ef5effb

Browse files
committed
reshim only when needed
1 parent 1bf79e3 commit ef5effb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/postinstall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ source "$(dirname "$0")/../lib/utils.sh"
55

66
if [ "$ASDF_SKIP_RESHIM" == "1" ]; then
77
echo "Run 'asdf reshim $(plugin_name) ${ASDF_INSTALL_VERSION:-$npm_config_node_version}' after installing the packages to reshim"
8-
else
8+
elif [[ ! -z `/usr/bin/env | grep "npm_package_bin"` ]]; then
99
asdf reshim "$(plugin_name)" "${ASDF_INSTALL_VERSION:-$npm_config_node_version}"
1010
fi

0 commit comments

Comments
 (0)