Coding standards cleanup - remove trailing whitespace, fixes VPP-332
Change-Id: I649a17f8fa47599faf438b2e596f53761790d10c Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:

committed by
Dave Barach

parent
256656735c
commit
607de1a063
@ -32,10 +32,14 @@ for i in `git ls-tree -r HEAD --name-only`;do
|
||||
if [ ${FIX} == 0 ]; then
|
||||
indent ${i} -o ${i}.out1 > /dev/null 2>&1
|
||||
indent ${i}.out1 -o ${i}.out2 > /dev/null 2>&1
|
||||
# Remove trailing whitespace
|
||||
sed -i -e 's/[[:space:]]*$//' ${i}.out2
|
||||
diff -q ${i} ${i}.out2
|
||||
else
|
||||
indent ${i}
|
||||
indent ${i}
|
||||
# Remove trailing whitespace
|
||||
sed -i -e 's/[[:space:]]*$//' ${i}
|
||||
fi
|
||||
if [ $? != 0 ]; then
|
||||
EXIT_CODE=1
|
||||
|
Reference in New Issue
Block a user