Fix infinite recursion installing node
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"lastCheck": 1644081143089
|
||||||
|
}
|
||||||
+5
-2
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user