fix: update apt before installing powershell

This commit is contained in:
Amin Yahyaabadi 2022-08-07 16:16:07 -07:00
parent 6c025078c9
commit 26e03ff671
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ export async function setupPowershell(version: string | undefined, _setupDir: st
"-c", "-c",
`echo "deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main" > /etc/apt/sources.list.d/microsoft.list`, `echo "deb [arch=amd64 signed-by=${keyFileName}] https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye main" > /etc/apt/sources.list.d/microsoft.list`,
]) ])
return setupAptPack("powershell", version) return setupAptPack("powershell", version, [], true)
} }
throw new Error(`Unsupported linux distribution`) throw new Error(`Unsupported linux distribution`)
} }