Fix infinite recursion installing node

This commit is contained in:
Andrew Miner
2022-02-05 10:13:05 -07:00
parent d89ed88cf2
commit 85ce0bf89b
2 changed files with 8 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
{
"lastCheck": 1644081143089
}
+5 -2
View File
@@ -81,10 +81,10 @@ function __install_with() {
if [[ "$INSTALLER" == "brew" ]]; then if [[ "$INSTALLER" == "brew" ]]; then
__update_brew __update_brew
elif [[ "$INSTALLER" == "npm" ]]; then elif [[ "$INSTALLER" == "npm" ]]; then
__install_node which -s node || __install_node
OPTS="-g" OPTS="-g"
elif [[ "$InSTALLER" == "pip" ]]; then elif [[ "$InSTALLER" == "pip" ]]; then
__install_python which -s python || __install_python
fi fi
$INSTALLER install $OPTS $PACKAGE $INSTALLER install $OPTS $PACKAGE
@@ -158,6 +158,9 @@ function __install_heroku() {
function __install_node() { function __install_node() {
__install_with brew node __install_with brew node
:q
__install_with npm nodemon __install_with npm nodemon
} }