Skip to content

Commit e818bcb

Browse files
authored
Merge branch 'main' into wach/bot-scripts
2 parents a939eb5 + 4a5be3a commit e818bcb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

install.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ while true; do
1010
if [[ $system == "Linux" ]]; then
1111
echo -e "\xE2\x9D\x8C please input your password to proceed so that the setup runs successfully"
1212
echo
13-
14-
if type -p curl >/dev/null || (sudo apt update && sudo apt install -y curl ) && curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && 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 && curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt update && sudo apt install -y gh git nodejs; then
13+
# Setup Githubcli Keyring
14+
if type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y)
15+
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
16+
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
17+
&& 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 -
19+
&& sudo apt update && sudo apt install -y gh git nodejs; then
1520
echo
1621
break
1722
else

0 commit comments

Comments
 (0)