diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-26 22:05:54 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-26 22:05:54 -0700 |
commit | 5bb0eed611e73f17a4f4188e5c1e4d82be8a3c30 (patch) | |
tree | 46122c38e74d83f424dd8248e61caa09ec42f039 /extension/src/activation | |
parent | 19db6b37e742e398807e4b63fd7806a4260f067e (diff) | |
download | sncontinue-5bb0eed611e73f17a4f4188e5c1e4d82be8a3c30.tar.gz sncontinue-5bb0eed611e73f17a4f4188e5c1e4d82be8a3c30.tar.bz2 sncontinue-5bb0eed611e73f17a4f4188e5c1e4d82be8a3c30.zip |
ampersands instead of semi-colons
Diffstat (limited to 'extension/src/activation')
-rw-r--r-- | extension/src/activation/environmentSetup.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index c99ed1dd..4e6e5786 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -118,7 +118,7 @@ async function setupPythonEnv() { const createEnvCommand = [ `cd "${path.join(getExtensionUri().fsPath, "scripts")}"`, `${pythonCmd} -m venv env`, - ].join("; "); + ].join(" && "); // Repeat until it is successfully created (sometimes it fails to generate the bin, need to try again) while (true) { @@ -154,7 +154,7 @@ async function setupPythonEnv() { pipUpgradeCmd, `${pipCmd} install -r requirements.txt`, touchCmd, - ].join(" ; "); + ].join(" && "); const [, stderr] = await runCommand(installRequirementsCommand); if (stderr) { throw new Error(stderr); @@ -292,7 +292,7 @@ export async function downloadPython3() { throw new Error("python3 not found"); } else if (os === "linux") { command = - "sudo apt update ; upgrade ; sudo apt install python3 python3-pip"; + "sudo apt update && upgrade && sudo apt install python3 python3-pip"; } else if (os === "win32") { command = "wget -O python_installer.exe https://www.python.org/ftp/python/3.11.3/python-3.11.3-amd64.exe ; python_installer.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0"; |