diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-14 17:52:28 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-14 17:52:28 -0700 |
commit | b07e2f299907989671c63bb5ee100bdc13f45eb5 (patch) | |
tree | 6a8c3915ea6763cd54d26a77dd0598dcc9e17895 /extension/src | |
parent | a407c36f89ae7738f6993239b88cd9a2362c1fd7 (diff) | |
download | sncontinue-b07e2f299907989671c63bb5ee100bdc13f45eb5.tar.gz sncontinue-b07e2f299907989671c63bb5ee100bdc13f45eb5.tar.bz2 sncontinue-b07e2f299907989671c63bb5ee100bdc13f45eb5.zip |
set permissions to /exe
Diffstat (limited to 'extension/src')
-rw-r--r-- | extension/src/activation/environmentSetup.ts | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index c87f1a7b..3cb702ac 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -203,17 +203,18 @@ export async function startContinuePythonServer(redownload: boolean = true) { } ); console.log("Downloaded server executable at ", destination); - // Get name of the corresponding executable for platform - if (os.platform() === "darwin") { - // Add necessary permissions - fs.chmodSync(destination, 0o7_5_5); - await runCommand(`xattr -dr com.apple.quarantine ${destination}`); - } else if (os.platform() === "linux") { - // Add necessary permissions - fs.chmodSync(destination, 0o7_5_5); - } } - + + // Get name of the corresponding executable for platform + if (os.platform() === "darwin") { + // Add necessary permissions + fs.chmodSync(destination, 0o7_5_5); + await runCommand(`xattr -dr com.apple.quarantine ${destination}`); + } else if (os.platform() === "linux") { + // Add necessary permissions + fs.chmodSync(destination, 0o7_5_5); + } + // Validate that the file exists console.log("Looking for file at ", destination); if (!fs.existsSync(destination)) { |