From acba1ad74a5ee9dcc20d85fa5d8711393baae613 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Tue, 7 Dec 2021 03:04:42 -0600 Subject: [PATCH] fix: quote the deb ppa --- src/gcc/gcc.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gcc/gcc.ts b/src/gcc/gcc.ts index 0d778c5b..989b348b 100644 --- a/src/gcc/gcc.ts +++ b/src/gcc/gcc.ts @@ -37,8 +37,8 @@ export async function setupGcc(version: string, _setupDir: string, arch: string) binDir = ( await setupAptPack("g++", version, [ "ppa:ubuntu-toolchain-r/test", - "deb http://dk.archive.ubuntu.com/ubuntu/ xenial mai", - "deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe", + "'deb http://dk.archive.ubuntu.com/ubuntu/ xenial mai'", + "'deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe'", ]) ).binDir } else { @@ -46,8 +46,8 @@ export async function setupGcc(version: string, _setupDir: string, arch: string) binDir = ( await setupAptPack("g++-multilib", version, [ "ppa:ubuntu-toolchain-r/test", - "deb http://dk.archive.ubuntu.com/ubuntu/ xenial mai", - "deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe", + "'deb http://dk.archive.ubuntu.com/ubuntu/ xenial mai'", + "'deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe'", ]) ).binDir } @@ -59,8 +59,8 @@ export async function setupGcc(version: string, _setupDir: string, arch: string) // if (arch === "arm" || arch === "arm64") { // return setupAptPack("gcc-arm-none-eabi", version, [ // "ppa:ubuntu-toolchain-r/test", - // "deb http://dk.archive.ubuntu.com/ubuntu/ xenial mai", - // "deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe", + // "'deb http://dk.archive.ubuntu.com/ubuntu/ xenial mai'", + // "'deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe'", // ]) // } else { // throw new Error(`Unsupported platform for ${arch}`)