Skip to content

Commit 9ef641b

Browse files
authored
Merge pull request #15 from Wach-E/wach/bot-scripts
fix: pkg: Pinned version for nodejs & removed npm
2 parents 4a5be3a + e818bcb commit 9ef641b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ while true; do
1111
echo -e "\xE2\x9D\x8C please input your password to proceed so that the setup runs successfully"
1212
echo
1313
# Setup Githubcli Keyring
14-
type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y)
14+
if type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y)
1515
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
1616
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
1717
&& 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-
19-
if sudo apt update && sudo apt install -y git gh curl nodejs npm; then
18+
&& curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
19+
&& sudo apt update && sudo apt install -y gh git nodejs; then
2020
echo
2121
break
2222
else

0 commit comments

Comments
 (0)