diff --git a/.multi_arch_docker b/.multi_arch_docker index 93c08590e..294fed2da 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 e2dc0bcc3..0ec97183b 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 0dc775a51..3e5ca1957 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 a848d9cb0..2254c02ad 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 187d12a95..50eaddc79 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.