From: Stephen Rothwell Date: Wed, 30 Nov 2022 07:07:15 +0000 (+1100) Subject: common.sh: some shellcheck fixes X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=dadb47b72322c280e9a39b9c301ceb0bca1b622e;p=next-scripts common.sh: some shellcheck fixes --- diff --git a/common.sh b/common.sh index 947c1c2..37b7511 100644 --- a/common.sh +++ b/common.sh @@ -14,6 +14,8 @@ top_dir=$(dirname "$bin_dir") if [ -z "$LOG_FILE" ]; then LOG_FILE="$top_dir/merge.log" fi +# "... appears unused" +# shellcheck disable=SC2034 SHA1_FILE="$top_dir/SHA1s" CTRL_FILE="$top_dir/etc/control" @@ -21,7 +23,11 @@ build_host="ash" build_dir="$HOME/next/next" gcc_version="4.9.0" j_factor=$(nproc) +# "... appears unused" +# shellcheck disable=SC2034 gpg_key=89F91C0A41D5C07A +# "... appears unused" +# shellcheck disable=SC2034 kup_gpg_key=015042F34957D06C if [ "$NEXT_BUILD_HOST" ]; then @@ -89,8 +95,12 @@ get_build_flag() check_unmerged_files() { + # "In POSIX sh, 'local' is undefined." + # shellcheck disable=SC3043 local tree="$1" + # shellcheck disable=SC3043 local um_files + # shellcheck disable=SC3043 local rm_files um_files=$(git diff 2>&1 | sed -n 's/^\* Unmerged path //p')