Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Support dos2unix as flip alternative
  • Loading branch information
m-kuhn committed Aug 16, 2015
1 parent 9fc1b48 commit f8dd490
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scripts/astyle.sh
Expand Up @@ -29,10 +29,16 @@ if [ -z "$ASTYLE" ]; then
fi

if ! type -p flip >/dev/null; then
echo "flip not found" >&2
flip() {
:
}
if type -p dos2unix >/dev/null; then
flip() {
exec dos2unix $2
}
else
echo "flip not found" >&2
flip() {
:
}
fi
fi

if ! type -p pep8 >/dev/null; then
Expand Down

0 comments on commit f8dd490

Please sign in to comment.