abuild: Fix shellcheck errors
commit5b7c6f52e6177100210dff5d066129e28d284331
authorMartin Roth <gaumless@gmail.com>
Sun, 22 Jul 2018 16:54:11 +0000 (22 10:54 -0600)
committerPatrick Georgi <pgeorgi@google.com>
Tue, 31 Jul 2018 10:07:32 +0000 (31 10:07 +0000)
tree64924b4ce4d41a5cb03864c8539144dd7233979b
parent7a98591a1dcdeda9c67efc1e65c8549b528a1dd2
abuild: Fix shellcheck errors

Fix 6 new errors found by shellcheck 0.4.6
SC2155: Declare and assign separately to avoid masking return values.
4 x SC2086: Double quote to prevent globbing and word splitting.
SC2196: egrep is non-standard and deprecated. Use grep -E instead.

One of the SC2086 errors is masked because it needs word splitting.

Change-Id: I7f869e6d208f7247f739619c538be6075b802719
Signed-off-by: Martin Roth <gaumless@gmail.com>
Reviewed-on: https://review.coreboot.org/27597
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Alex Thiessen <alex.thiessen.de+coreboot@gmail.com>
util/abuild/abuild