lint: Don't check for WSL2 host path on non-Linux OSes
This commit is contained in:
parent
b6a18b0da5
commit
a25c835d00
|
@ -7,9 +7,11 @@ set -euo pipefail
|
|||
# use Windows' git when working under path mounted from host on wsl2
|
||||
# inspired by https://markentier.tech/posts/2020/10/faster-git-under-wsl2/#solution
|
||||
GIT=git
|
||||
if [ "$(uname -s)" == "Linux" ]; then
|
||||
if [ "$(stat --file-system --format=%T `pwd -P`)" == "v9fs" ]; then
|
||||
GIT=git.exe
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! [ -x "$(command -v $GIT)" ]; then
|
||||
echo >&2 "error: git is not installed"
|
||||
|
|
Loading…
Reference in New Issue