diff --git a/autoformat.sh b/autoformat.sh index 5b4bf14..a921ae5 100755 --- a/autoformat.sh +++ b/autoformat.sh @@ -19,5 +19,5 @@ OPTS=( --mode=java -xc --style=google -j -s2 -xG -S -K -N -xn -xl -n -p -H ) GLOB=( src/**/*.java ) astyle $OPTS $GLOB|\grep -P '^(?!Unchanged)' # Get rid of newlines -sed -i'' '/^\s*$/d' $GLOB +perl -ni'' -e '/^\s*$/ || print' $GLOB \cd ->/dev/null