From f35284481cee00d27aa7424c31839897fd704025 Mon Sep 17 00:00:00 2001 From: Talut Salako <70220179+plutack@users.noreply.github.com> Date: Thu, 6 Jun 2024 00:03:28 +0000 Subject: [PATCH 1/4] add jq to required packages --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 856f9bb..8f74cab 100644 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ source ~/.local/share/omakub/ascii.sh # Needed for all installers sudo apt update -y -sudo apt install -y curl git +sudo apt install -y curl git jq # Ensure computer doesn't go to sleep while installing gsettings set org.gnome.desktop.session idle-delay 0 From e21a67d12ae0eb8dce4885dd14b579442358a281 Mon Sep 17 00:00:00 2001 From: Talut Salako <70220179+plutack@users.noreply.github.com> Date: Thu, 6 Jun 2024 00:09:03 +0000 Subject: [PATCH 2/4] auto grab latest lts version --- install/nodenv.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/nodenv.sh b/install/nodenv.sh index 5e8bff0..f08fa15 100644 --- a/install/nodenv.sh +++ b/install/nodenv.sh @@ -1,6 +1,6 @@ if ! command -v nodenv &>/dev/null; then - # FIXME: Make this pick whatever the latest LTS is - DEFAULT_NODE_VERSION="20.13.1" + URL=https://nodejs.org/download/release/index.json + DEFAULT_NODE_VERSION=(curl -s "$URL" | jq -r '.[] | select(.lts != false) | .version' | head -n 1) git clone https://github.com/nodenv/nodenv.git ~/.nodenv sudo ln -vs ~/.nodenv/bin/nodenv /usr/local/bin/nodenv From cdc841b770ad471855a374ca6136fd715beddcda Mon Sep 17 00:00:00 2001 From: Talut Salako <70220179+plutack@users.noreply.github.com> Date: Thu, 6 Jun 2024 00:25:30 +0000 Subject: [PATCH 3/4] fix node version variable --- install/nodenv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/nodenv.sh b/install/nodenv.sh index f08fa15..323cff7 100644 --- a/install/nodenv.sh +++ b/install/nodenv.sh @@ -1,6 +1,6 @@ if ! command -v nodenv &>/dev/null; then URL=https://nodejs.org/download/release/index.json - DEFAULT_NODE_VERSION=(curl -s "$URL" | jq -r '.[] | select(.lts != false) | .version' | head -n 1) + DEFAULT_NODE_VERSION=$(curl -s "$URL" | jq -r '.[] | select(.lts != false) | .version' | head -n 1) git clone https://github.com/nodenv/nodenv.git ~/.nodenv sudo ln -vs ~/.nodenv/bin/nodenv /usr/local/bin/nodenv From 8a893005e9a29a7cac2842d4fb294adcabe35460 Mon Sep 17 00:00:00 2001 From: Talut Salako <70220179+plutack@users.noreply.github.com> Date: Thu, 6 Jun 2024 00:29:52 +0000 Subject: [PATCH 4/4] fix URL variable --- install/nodenv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/nodenv.sh b/install/nodenv.sh index 323cff7..de77835 100644 --- a/install/nodenv.sh +++ b/install/nodenv.sh @@ -1,5 +1,5 @@ if ! command -v nodenv &>/dev/null; then - URL=https://nodejs.org/download/release/index.json + URL="https://nodejs.org/download/release/index.json" DEFAULT_NODE_VERSION=$(curl -s "$URL" | jq -r '.[] | select(.lts != false) | .version' | head -n 1) git clone https://github.com/nodenv/nodenv.git ~/.nodenv