Skip to content

Commit 0b00504

Browse files
committed
updated nodejs install process to remove deprecations
1 parent 9ec98fa commit 0b00504

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

install.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ while true; do
88
system=$(uname)
99

1010
if [[ $system == "Linux" ]]; then
11-
echo -e "\xE2\x9D\x8C please input your password to proceed so that the setup runs successfully"
1211
echo
1312
# Setup Githubcli Keyring
1413
if type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y)
1514
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && \
1615
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && \
1716
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null && \
18-
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && \
17+
sudo apt install -y ca-certificates gnupg && \
18+
sudo mkdir -p /etc/apt/keyrings && \
19+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
20+
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list && \
1921
sudo apt update && sudo apt install -y gh git nodejs; then
2022
echo
2123
break
2224
else
23-
echo -e "\xE2\x9D\x8C please input your password to proceed so that the setup runs successfully"
25+
echo -e "\xE2\x9D\x8C An error occurred while executing the script"
2426
return
2527
fi
2628
echo

0 commit comments

Comments
 (0)