Commit
a42c6a56e031ff92512494cb7906655e98a9ab52
by Oliver Smithlint/lint_diff: make use of shell functions
Prepare to add more logic to this file by first moving existing code
blocks into functions.
Change-Id: If884f51f20e794397ee0fecff0cf1f958957da05