fix node version variable

This commit is contained in:
Talut Salako 2024-06-06 00:25:30 +00:00
parent e21a67d12a
commit cdc841b770

View File

@ -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