coreboot/util
Martin Roth f9e482254e UPSTREAM: util/abuild: Fix or disable shellcheck warnings
This cleans up the shellcheck warnings in abuild.

Warning count:
1 Unexpected ==.
1 Use "${var:?}" to ensure this never expands to / .
1 VARIABLE appears unused. Verify it or export it.
1 Use "$@" (with quotes) to prevent whitespace problems.
2 Consider using { cmd1; cmd2; } >> file instead of individual redirects.
2 Expressions don't expand in single quotes, use double quotes for that.
3 Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
4 $/${} is unnecessary on arithmetic variables.
5 Check exit code directly with 'if mycmd;', not indirectly with $?.
5 Use cd ... || exit in case cd fails.
11 Declare and assign separately to avoid masking return values.
13 Use $(..) instead of legacy `..`.
20 Don't use variables in the printf format string.
104 Double quote to prevent globbing.

BUG=None
BRANCH=None
TEST=None

Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/17722
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>

Change-Id: I9c77e122435ba87ce3a4aee76b5022f7265f9ef2
Reviewed-on: https://chromium-review.googlesource.com/419623
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-12-13 17:49:24 -08:00
..
abuild UPSTREAM: util/abuild: Fix or disable shellcheck warnings 2016-12-13 17:49:24 -08:00
acpi
amdfwtool UPSTREAM: util/amdfwtool: Wrap long lines, excluding comments 2016-11-29 17:38:12 -08:00
amdtools
archive archive: build archive tool with HOSTCC 2016-03-08 17:40:05 +01:00
arm_boot_tools/mksunxiboot
autoport UPSTREAM: autoport: Fix romstage generator 2016-12-08 22:46:38 -08:00
bimgtool codebase: Change makefile $(shell pwd) commands to $(CURDIR) 2016-03-11 18:48:06 +01:00
board_status UPSTREAM: board_status: Abort early if the coreboot image doesn't exist 2016-05-26 03:21:20 -07:00
broadcom UPSTREAM: Add newlines at the end of all coreboot files 2016-08-05 11:45:17 -07:00
cbfstool util/cbfstool: Enable filling fmap regions with a given value 2016-12-09 10:49:44 -08:00
cbmem UPSTREAM: cbmem: Exit with an errorlevel of 0 after printing help 2016-09-15 13:41:18 -07:00
checklist UPSTREAM: util/checklist: Place tables in proper boot order 2016-08-11 03:14:32 -07:00
chromeos UPSTREAM: util/chromeos: Make scripts executable 2016-08-04 23:36:47 -07:00
crossgcc UPSTREAM: buildgcc: Be less restrictive when trying to build GNAT 2016-12-08 12:31:34 -08:00
docker UPSTREAM: util/docker: Update docker files for coreboot-sdk & jenkins builders 2016-08-19 14:19:49 -07:00
dtd_parser
ectool
exynos
futility UPSTREAM: Rename VB_SOURCE to VBOOT_SOURCE for increased clarity 2016-07-28 22:56:11 -07:00
fuzz-tests
genbuild_h genbuild_h: Fix numeric comparison to remove error 2016-03-14 23:37:12 +01:00
genprof
gitconfig UPSTREAM: Rename and move util/gitconfig/rebase.sh 2016-10-25 14:46:55 -07:00
ifdfake
ifdtool UPSTREAM: ifdtool: Add option to specify platform (-p) quirks 2016-11-08 23:24:23 -08:00
intelmetool UPSTREAM: intelmetool: Add the X99 ISA Bridge device id 2016-06-06 23:35:00 -07:00
inteltool UPSTREAM: util/inteltool: Fix bay trail ahci device 2016-11-29 17:38:14 -08:00
intelvbttool UPSTREAM: intelvbttool: cope with errors in open() 2016-08-04 23:37:52 -07:00
ipqheader util: ipq40xx: Scripts to combine SBL and Coreboot ELFs 2016-05-09 09:36:27 +02:00
k8resdump
kconfig UPSTREAM: util/kconfig/conf.c: Fix newline in error printf 2016-12-09 03:30:11 -08:00
lint UPSTREAM: util/lint: Add check to verify saved configs are miniconfigs 2016-12-09 03:30:09 -08:00
marvell
mma util/mma: changing BOOT_STUB to COREBOOT region and few more things 2016-05-10 22:59:36 +02:00
msrtool UPSTREAM: util/msrtool: Use tabs for indents 2016-10-19 14:06:44 -07:00
mtkheader
nvidia Make upstream tree CrOS SDK friendly 2016-05-12 15:42:17 -06:00
nvramtool UPSTREAM: nvramtool: Don't consider reserved regions to be "out of range" 2016-08-04 23:37:39 -07:00
optionlist
post util: Add a very simple utility to test POST cards. 2016-02-26 07:00:33 +01:00
release UPSTREAM: util/release/build-release: Update tar command 2016-10-11 14:31:59 -07:00
riscvtools UPSTREAM: RISCV: change make-spike-elf to use the coreboot toolchain. 2016-10-18 22:14:47 -07:00
rockchip rockchip: update make_idb.py 2016-03-16 15:24:10 +01:00
romcc romcc.1: Point bug reporters to the coreboot ML / bug tracker 2016-05-01 16:29:09 +02:00
sconfig UPSTREAM: sconfig: Reformat C code 2016-08-13 20:28:32 -07:00
scripts UPSTREAM: util/scripts: add copyright notices 2016-10-25 14:46:57 -07:00
showdevicetree
spkmodem_recv
superiotool UPSTREAM: superiotool: Add undocumented registers of ITE IT8783E/F 2016-11-03 14:44:22 -07:00
uio_usbdebug
vgabios UPSTREAM: Remove extra newlines from the end of all coreboot files. 2016-08-04 23:36:56 -07:00
viatool UPSTREAM: viatool/quirks: Add newline to end of file 2016-08-02 14:29:22 -07:00
xcompile UPSTREAM: util/xcompile/xcompile: Add a space before && 2016-10-29 15:16:47 -07:00