From 22051478aa40f877afc1a82a7e2ad92827755769 Mon Sep 17 00:00:00 2001 From: Jerjou Date: Mon, 6 Mar 2017 14:18:47 -0800 Subject: [PATCH] Disable some shellchecks. (#542) * Disable some shellchecks. * Disable some shellchecks. --- jenkins.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jenkins.sh b/jenkins.sh index c4200552a72..aed99618c40 100755 --- a/jenkins.sh +++ b/jenkins.sh @@ -19,6 +19,7 @@ shopt -s globstar app_version="" +# shellcheck disable=SC2120 delete_app_version() { if [ -n "${app_version}" ] || [ $# -gt 0 ]; then yes | gcloud --project="${GOOGLE_PROJECT_ID}" \ @@ -29,7 +30,7 @@ handle_error() { errcode=$? # Remember the error code so we can exit with it after cleanup # Clean up - delete_app_version + delete_app_version # shellcheck disable=SC2119 exit ${errcode} } @@ -39,7 +40,7 @@ trap handle_error ERR shellcheck ./**/*.sh # Find all jenkins.sh's and run them. -find . -mindepth 2 -maxdepth 5 -name jenkins.sh -type f | while read path; do +find . -mindepth 2 -maxdepth 5 -name jenkins.sh -type f | while read -r path; do dir="${path%/jenkins.sh}" app_version="jenkins-${dir//[^a-z]/}" (