fix script

This commit is contained in:
Skillet 2023-06-10 19:09:25 -04:00 committed by GitHub
parent ce4371feff
commit 839eb32607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -358,12 +358,13 @@ yarn_site='https://dl.yarnpkg.com/debian'
yarn_key_url="$yarn_site/pubkey.gpg" yarn_key_url="$yarn_site/pubkey.gpg"
local_yarn_key="$keyring/yarnkey.gpg" local_yarn_key="$keyring/yarnkey.gpg"
exec_cmd "curl -sL $yarn_key_url | gpg --dearmor | tee $local_yarn_key >/dev/null"
exec_cmd "echo 'deb [signed-by=$local_yarn_key] $yarn_site stable main' | tee /etc/apt/sources.list.d/yarn.list"
print_status """Run \`${bold}sudo apt-get install -y ${NODEPKG}${normal}\` to install ${NODENAME} and npm print_status """Run \`${bold}sudo apt-get install -y ${NODEPKG}${normal}\` to install ${NODENAME} and npm
## You may also need development tools to build native addons: ## You may also need development tools to build native addons:
sudo apt-get install gcc g++ make sudo apt-get install gcc g++ make
## To install the Yarn package manager, run: ## To install the Yarn package manager, run:
curl -sL $yarn_key_url | gpg --dearmor | sudo tee $local_yarn_key >/dev/null
echo \"deb [signed-by=$local_yarn_key] $yarn_site stable main\" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn sudo apt-get update && sudo apt-get install yarn
""" """