From 8d5eda8af796db290c854c2cb5498622d47b8903 Mon Sep 17 00:00:00 2001 From: Reed Wade Date: Fri, 30 Oct 2020 14:41:17 +0100 Subject: [PATCH] Add automatic shellchecks with CI Signed-off-by: Reed Wade --- .build.yml | 9 +++++++++ scripts/core/sxmo_xinit.sh | 1 + 2 files changed, 10 insertions(+) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..25b7b40 --- /dev/null +++ b/.build.yml @@ -0,0 +1,9 @@ +image: alpine/edge +packages: + - shellcheck +sources: + - https://git.sr.ht/~mil/sxmo-utils +tasks: + - shellcheck: | + cd sxmo-utils + shellcheck scripts/*/* diff --git a/scripts/core/sxmo_xinit.sh b/scripts/core/sxmo_xinit.sh index 1baec47..4a595cd 100755 --- a/scripts/core/sxmo_xinit.sh +++ b/scripts/core/sxmo_xinit.sh @@ -3,6 +3,7 @@ envvars() { # shellcheck disable=SC1091 [ -f /etc/profile ] && . /etc/profile + # shellcheck source=/dev/null [ -f "$HOME"/.profile ] && . "$HOME"/.profile command -v "$TERM" || export TERM=st command -v "$BROWSER" || export BROWSER=surf