fix URL variable

This commit is contained in:
Talut Salako 2024-06-06 00:29:52 +00:00
parent cdc841b770
commit 8a893005e9

View File

@ -1,5 +1,5 @@
if ! command -v nodenv &>/dev/null; then 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) DEFAULT_NODE_VERSION=$(curl -s "$URL" | jq -r '.[] | select(.lts != false) | .version' | head -n 1)
git clone https://github.com/nodenv/nodenv.git ~/.nodenv git clone https://github.com/nodenv/nodenv.git ~/.nodenv