Skip to content

Commit

Permalink
Use proper path for chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaoumov committed Jul 4, 2024
1 parent 7280eb0 commit 023bbb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export async function downloadEsbuild(plugin: Plugin): Promise<void> {
await app.vault.adapter.writeBinary(fullPath, response.arrayBuffer);

if (fullPath.endsWith("esbuild")) {
execSync(`chmod +x "${fullPath}"`);
const fullRealPath = app.vault.adapter.getFullRealPath(fullPath);
execSync(`chmod +x "${fullRealPath}"`);
}

notice.hide();
Expand Down

0 comments on commit 023bbb0

Please sign in to comment.