From 85ce0bf89bf761cad42f83409aaa45bd6c6e2e33 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Sat, 5 Feb 2022 10:13:05 -0700 Subject: [PATCH] Fix infinite recursion installing node --- home/.config/configstore/nodemon.json | 3 +++ install.sh | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 home/.config/configstore/nodemon.json diff --git a/home/.config/configstore/nodemon.json b/home/.config/configstore/nodemon.json new file mode 100644 index 0000000..74c70fd --- /dev/null +++ b/home/.config/configstore/nodemon.json @@ -0,0 +1,3 @@ +{ + "lastCheck": 1644081143089 +} \ No newline at end of file diff --git a/install.sh b/install.sh index 8adde09..b0d00aa 100755 --- a/install.sh +++ b/install.sh @@ -81,10 +81,10 @@ function __install_with() { if [[ "$INSTALLER" == "brew" ]]; then __update_brew elif [[ "$INSTALLER" == "npm" ]]; then - __install_node + which -s node || __install_node OPTS="-g" elif [[ "$InSTALLER" == "pip" ]]; then - __install_python + which -s python || __install_python fi $INSTALLER install $OPTS $PACKAGE @@ -158,6 +158,9 @@ function __install_heroku() { function __install_node() { __install_with brew node + :q + + __install_with npm nodemon }