diff --git a/scripts/astyle.sh b/scripts/astyle.sh index 87cd938fc594..c15815391310 100755 --- a/scripts/astyle.sh +++ b/scripts/astyle.sh @@ -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() {