From 2382c087b5f0d51a4556c8c62f4723ab5a0ab7c9 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Tue, 21 Apr 2020 16:06:08 +0100 Subject: Various shellcheck warning fixes First round of low hanging fruit from the files with the fewest warnings. Change-Id: I60ad57b5bfb2f0be9bb6506252c820f44d055200 --- tcwg-upstream2gerrit.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tcwg-upstream2gerrit.sh') diff --git a/tcwg-upstream2gerrit.sh b/tcwg-upstream2gerrit.sh index f1fc3fb9..c446b207 100755 --- a/tcwg-upstream2gerrit.sh +++ b/tcwg-upstream2gerrit.sh @@ -2,7 +2,7 @@ set -ef -o pipefail -. $(dirname $0)/jenkins-helpers.sh +. "$(dirname $0)"/jenkins-helpers.sh convert_args_to_variables "$@" # Make shellcheck happy and workaround Jenkins not defining variables @@ -34,7 +34,7 @@ default=$project url= https://patches-$project.linaro.org/xmlrpc/ EOF -last_id=$($pwc list -N 1 -f %{id}) +last_id=$($pwc list -N 1 -f "%{id}") if [ "$last_id" = "" ]; then echo "ERROR: Cannot fetch last patch id." exit 1 @@ -69,6 +69,7 @@ case "$project" in esac patch_file=$(mktemp) +# shellcheck disable=SC2064 trap "rm -f $patch_file /tmp/mydiff.$$" EXIT count="0" -- cgit v1.2.3