diff --git a/.multi_arch_docker b/.multi_arch_docker index 93c08590e08488e558b8a90b28f4d3791be76d17..294fed2daadd2e5f8c7e900834498d1aef22cc67 100755 --- a/.multi_arch_docker +++ b/.multi_arch_docker @@ -2,6 +2,12 @@ # This script builds and deploys multi-architecture docker images from the # binaries previously built and deployed to GCS by the Travis pipeline. +if [[ "$TRAVIS_SECURE_ENV_VARS" != "true" ]] +then + echo >&2 "Missing TRAVIS_SECURE_ENV_VARS. Skipping Docker builds." + exit 0 +fi + function multi_arch_docker::install_docker_buildx() { # Install up-to-date version of docker, with buildx support. local -r docker_apt_repo='https://download.docker.com/linux/ubuntu' diff --git a/.travis.yml b/.travis.yml index e2dc0bcc34cb9a9d4f3c7e4ec6d134017ead7ce8..0ec97183ba28dfe171888bfc92aff349ffb8e56c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ jobs: - stage: Deploy docker image # Deploy only for pushes to master branch, not other branches, not PRs. - if: branch = master AND type = push + if: type = push script: - source ./.multi_arch_docker - set -ex; multi_arch_docker::main; set +x diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dc775a515d1ddd37bc4e91dceac159a400ef3d3..3e5ca19574ea81fcb87c2d9ea547daff4d619666 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## v0.7.1 - soon +## v0.7.1 - 2020-04-04 ### Fixed - `-f diff` no longer claims that it found more issues when it didn't - Known empty variables now correctly trigger SC2086 @@ -7,6 +7,7 @@ called with `builtin` ### Added +- SC1136: Warn about unexpected characters after ]/]] - SC2254: Suggest quoting expansions in case statements - SC2255: Suggest using `$((..))` in `[ 2*3 -eq 6 ]` - SC2256: Warn about translated strings that are known variables @@ -17,6 +18,7 @@ - SC2230: 'command -v' suggestion is now off by default (-i deprecate-which) - SC1081: Keywords are now correctly parsed case sensitively, with a warning + ## v0.7.0 - 2019-07-28 ### Added - Precompiled binaries for macOS and Linux aarch64 diff --git a/ShellCheck.cabal b/ShellCheck.cabal index a848d9cb02307afd49e4aa245844c09e26dee754..2254c02ad0e4b2cfea52e4f9a23712354e6fe706 100644 --- a/ShellCheck.cabal +++ b/ShellCheck.cabal @@ -1,5 +1,5 @@ Name: ShellCheck -Version: 0.7.0 +Version: 0.7.1 Synopsis: Shell script analysis tool License: GPL-3 License-file: LICENSE diff --git a/shellcheck.1.md b/shellcheck.1.md index 187d12a9522a94249a8aa66bb8831258b8b4129d..50eaddc793a5c7745224d149972a9adf47a65a69 100644 --- a/shellcheck.1.md +++ b/shellcheck.1.md @@ -107,7 +107,7 @@ not warn at all, as `ksh` supports decimals in arithmetic contexts. **-x**,\ **--external-sources** -: Follow 'source' statements even when the file is not specified as input. +: Follow `source` statements even when the file is not specified as input. By default, `shellcheck` will only follow files specified on the command line (plus `/dev/null`). This option allows following any file the script may `source`. @@ -301,7 +301,7 @@ invocation. # RETURN VALUES -ShellCheck uses the follow exit codes: +ShellCheck uses the following exit codes: + 0: All files successfully scanned with no issues. + 1: All files successfully scanned with some issues.