enable shellcheck
Make minor fixes to the shellcheck errors reported by .build.sh
and enable shellcheck in CI.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I36163bb48ce984371e808937bc64767535ff9e63
diff --git a/.build.sh b/.build.sh
index 79b0b5c..f82a7bf 100755
--- a/.build.sh
+++ b/.build.sh
@@ -4,7 +4,7 @@
FROM ubuntu:15.10
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade -yy
RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -yy make gcc libsystemd-dev libc6-dev pkg-config
-RUN groupadd -g ${GROUPS} ${USER} && useradd -d ${HOME} -m -u ${UID} -g ${GROUPS} ${USER}
+RUN groupadd -g ${GROUPS[0]} ${USER} && useradd -d ${HOME} -m -u ${UID} -g ${GROUPS[0]} ${USER}
USER ${USER}
ENV HOME ${HOME}
RUN /bin/bash
@@ -20,4 +20,4 @@
wget https://raw.githubusercontent.com/openbmc/linux/dev-4.3/include/uapi/linux/bt-host.h -O linux/bt-host.h
docker run --cap-add=sys_admin --net=host --rm=true --user="${USER}" \
- -w "${PWD}" -v "${HOME}":"${HOME}" -t temp make KERNEL_HEADERS=$PWD
+ -w "${PWD}" -v "${HOME}":"${HOME}" -t temp make "KERNEL_HEADERS=$PWD"
diff --git a/.shellcheck b/.shellcheck
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.shellcheck