armbian-next: tooling: introduce helper/downloader for shellcheck; include in Dockerfile

This commit is contained in:
Ricardo Pardini
2023-02-02 14:44:44 +01:00
parent 871f3cfcee
commit f0d3ea7961
3 changed files with 100 additions and 2 deletions

View File

@@ -613,6 +613,15 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
# shellcheck source=lib/functions/general/retry.sh
source "${SRC}"/lib/functions/general/retry.sh
# no errors tolerated. invoked before each sourced file to make sure.
#set -o pipefail # trace ERR through pipes - will be enabled "soon"
#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled
set -o errtrace # trace ERR through - enabled
set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled
### lib/functions/general/shellcheck.sh
# shellcheck source=lib/functions/general/shellcheck.sh
source "${SRC}"/lib/functions/general/shellcheck.sh
# no errors tolerated. invoked before each sourced file to make sure.
#set -o pipefail # trace ERR through pipes - will be enabled "soon"
#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled