Skip to content

Commit

Permalink
Support WSL shells in astyle script
Browse files Browse the repository at this point in the history
(cherry picked from commit 9b04a29)
  • Loading branch information
nyalldawson committed Nov 13, 2018
1 parent e288bdb commit f7bba75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/astyle.sh
Expand Up @@ -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() {
Expand Down

0 comments on commit f7bba75

Please sign in to comment.