From 9f5c28794498042e7e838df93317435afbfa79ee Mon Sep 17 00:00:00 2001 From: Yuki Okushi <huyuumi.dev@gmail.com> Date: Sat, 10 Oct 2020 23:16:09 +0900 Subject: [PATCH] Fix scripts following shellcheck --- ci/semver.sh | 2 +- ci/style.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/semver.sh b/ci/semver.sh index 8f8ce40c..75f83aed 100644 --- a/ci/semver.sh +++ b/ci/semver.sh @@ -72,5 +72,5 @@ for TARGET in $TARGETS; do done # FIXME: Use upstream once it gets rustup. - cargo +${NIGHTLY_DATE} semverfork --api-guidelines --target="${TARGET}" + cargo semverfork --api-guidelines --target="${TARGET}" done diff --git a/ci/style.sh b/ci/style.sh index 7acd128d..6dc9f133 100644 --- a/ci/style.sh +++ b/ci/style.sh @@ -11,7 +11,8 @@ if rustup component add rustfmt-preview ; then fi if shellcheck --version ; then - shellcheck -e SC2103 ci/*.sh + # GHA's shellcheck is too old (0.4.6) and cannot handle SC2153 correctly. + shellcheck -e SC2103 -e SC2153 ci/*.sh else echo "shellcheck not found" exit 1 -- GitLab