From 8a765dd273b1d9fb778356124435afe6589a9834 Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Thu, 29 Jul 2021 09:13:38 +0200 Subject: [PATCH] Fix error in shellcheck N4 Fix error in shellcheck N4 Signed-off-by: Bensuperpc --- .github/workflows/main.yml | 3 +-- imagefiles/dockcross | 2 +- imagefiles/install-gosu-binary.sh | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cd6a27b..5788a2e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,8 +26,7 @@ jobs: - name: Run ShellCheck uses: ludeeus/action-shellcheck@master with: - ignore: build-and-install-cmake.sh - severity: warning + severity: error env: SHELLCHECK_OPTS: -s bash - name: build diff --git a/imagefiles/dockcross b/imagefiles/dockcross index e3dd171..8032523 100755 --- a/imagefiles/dockcross +++ b/imagefiles/dockcross @@ -152,7 +152,7 @@ done # Source the config file if it exists DEFAULT_DOCKCROSS_CONFIG=~/.dockcross FINAL_CONFIG=${ARG_CONFIG-${DOCKCROSS_CONFIG-$DEFAULT_DOCKCROSS_CONFIG}} -# shellcheck source=~/.dockcross + [[ -f "$FINAL_CONFIG" ]] && source "$FINAL_CONFIG" # Set the docker image diff --git a/imagefiles/install-gosu-binary.sh b/imagefiles/install-gosu-binary.sh index 34a9280..4ef6d4f 100755 --- a/imagefiles/install-gosu-binary.sh +++ b/imagefiles/install-gosu-binary.sh @@ -20,7 +20,7 @@ url_key="https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-$ # download and verify the signature GNUPGHOME=$(mktemp -d) -export $GNUPGHOME +export GNUPGHOME gpg --keyserver hkp://pool.sks-keyservers.net:80 --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 || \ gpg --keyserver hkp://pgp.key-server.io:80 --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 || \