Skip to content

Commit

Permalink
Support WSL shells in astyle script
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 11, 2018
1 parent 471ed51 commit 9b04a29
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 9b04a29

Please sign in to comment.