fix: remove internal sudo from execSudo

This commit is contained in:
Amin Yahyaabadi 2022-07-25 01:08:03 -07:00
parent e4784c9adc
commit d6513160ef
2 changed files with 3 additions and 2 deletions

View File

@ -46,6 +46,7 @@ words:
- msys - msys
- multilib - multilib
- mxschmitt - mxschmitt
- nala
- noconfirm - noconfirm
- noprogressbar - noprogressbar
- nothrow - nothrow

View File

@ -24,12 +24,12 @@ export function setupNala(version: string, _setupDir: string, _arch: string) {
// https://github.com/volitank/nala#-installation // https://github.com/volitank/nala#-installation
execSudo("/bin/bash", [ execSudo("/bin/bash", [
"-c", "-c",
`echo "deb http://deb.volian.org/volian/ scar main" | sudo tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`, `echo "deb http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`,
]) ])
setupAptPack("wget") setupAptPack("wget")
execSudo("/bin/bash", [ execSudo("/bin/bash", [
"-c", "-c",
`wget -qO - https://deb.volian.org/volian/scar.key | sudo tee /etc/apt/trusted.gpg.d/volian-archive-scar-unstable.gpg > /dev/null`, `wget -qO - https://deb.volian.org/volian/scar.key | tee /etc/apt/trusted.gpg.d/volian-archive-scar-unstable.gpg > /dev/null`,
]) ])
if (version !== "legacy") { if (version !== "legacy") {