Skip to content

Commit f704f1b

Browse files
authored
Merge pull request #19 from Stuk/native-binary
Add support for shellcheck installed natively in Windows
2 parents f9d8035 + 454cbba commit f704f1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To install `shellcheck`, follow the instructions on [the shellcheck GitHub repos
1818

1919
`shellcheck` can be installed with ``apt-get`` on Debian sid, ``brew`` on Mac OS X, or compiled from its Haskell sources (manually, or through `cabal`).
2020

21-
On Windows, the Linux Subsystem must be enabled. See [Microsoft's guide](https://docs.microsoft.com/en-us/windows/wsl/install-win10), then run `wsl sudo apt update` and `wsl sudo apt install shellcheck` to install Shellcheck (if you installed ubuntu).
21+
On Windows either install natively or use the Linux Subsystem. See [Microsoft's guide](https://docs.microsoft.com/en-us/windows/wsl/install-win10), then run `wsl sudo apt update` and `wsl sudo apt install shellcheck` to install Shellcheck (if you installed Ubuntu).
2222

2323
On native Linux systems, Please make sure that the path to `shellcheck` is available to SublimeLinter.
2424
The docs cover [troubleshooting PATH configuration](http://sublimelinter.com/en/latest/troubleshooting.html#finding-a-linter-executable).

linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class Shellcheck(Linter):
77

88
cmd = 'shellcheck --format=gcc -'
9-
if sublime.platform() == 'windows' and which('wsl'):
9+
if sublime.platform() == 'windows' and not which('shellcheck') and which('wsl'):
1010
cmd = 'wsl ' + cmd
1111

1212
regex = (

0 commit comments

Comments
 (0)