Fix sed issue on non gnu sed computers by using perl
This commit is contained in:
parent
4717100d78
commit
a9ec38808f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user