Support WSL shells in astyle script

This commit is contained in:
Nyall Dawson 2018-11-12 08:55:36 +10:00
parent 471ed51051
commit 9b04a29116

View File

@ -71,6 +71,10 @@ if type -p cygpath >/dev/null; then
ASTYLEOPTS="$(cygpath -w "$ASTYLEOPTS")"
fi
if type -p wslpath >/dev/null; then
ASTYLEOPTS="$(wslpath -a -w "$ASTYLEOPTS")"
fi
set -e
astyleit() {