From 8848e945b9199a85430e5651c98d65801e5e0146 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 20 Sep 2016 01:31:19 -0600 Subject: [PATCH] Disable a shellcheck rule --- Makefile | 2 +- bin/compile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 33f291e..7ac949a 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ ci-dependencies: shellcheck lint: @echo linting... - @$(QUIET) find ./ -maxdepth 2 -not -path '*/\.*' | xargs file | egrep "shell|bash" | awk '{ print $$1 }' | sed 's/://g' | xargs shellcheck + @$(QUIET) find ./ -maxdepth 2 -not -path '*/\.*' | xargs file | egrep "shell|bash" | awk '{ print $$1 }' | sed 's/://g' | xargs shellcheck -e SC2069 setup: $(MAKE) ci-dependencies diff --git a/bin/compile b/bin/compile index 7285e34..18655a6 100755 --- a/bin/compile +++ b/bin/compile @@ -12,7 +12,8 @@ ZLIB_VERSION="1.2.8" ZLIB_TARBALL="zlib-${ZLIB_VERSION}.tar.gz" suppress() { - /bin/rm --force /tmp/surpress.out 2> /dev/null; $* 2>&1 > /tmp/surpress.out || cat /tmp/surpress.out; /bin/rm /tmp/surpress.out; + # shellcheck disable=SC2069 + /bin/rm --force /tmp/surpress.out 2> /dev/null; "$@" 2>&1 > /tmp/surpress.out || cat /tmp/surpress.out; /bin/rm /tmp/surpress.out; } # parse and derive params