Skip to content

Commit

Permalink
fix: executablePath not being respected (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs authored Jun 25, 2021
1 parent b471bc8 commit d3710b9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,12 @@ export default class ShellCheckProvider implements vscode.CodeActionProvider {
executablePath = this.context.asAbsolutePath(`./binaries/${process.platform}/${osarch}/shellcheck${suffix}`);
if (fs.existsSync(executablePath)) {
isBundled = true;
} else {
// Fallback to default shellcheck path
executablePath = 'shellcheck';
}
}

// Fallback to default shellcheck path
if (!isBundled) {
executablePath = 'shellcheck';
}

return {
path: executablePath,
bundled: isBundled,
Expand Down

0 comments on commit d3710b9

Please sign in to comment.