Skip to content

Commit 2205147

Browse files
jerjoulesv
authored andcommitted
Disable some shellchecks. (GoogleCloudPlatform#542)
* Disable some shellchecks. * Disable some shellchecks.
1 parent 1971e91 commit 2205147

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jenkins.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ shopt -s globstar
1919

2020
app_version=""
2121

22+
# shellcheck disable=SC2120
2223
delete_app_version() {
2324
if [ -n "${app_version}" ] || [ $# -gt 0 ]; then
2425
yes | gcloud --project="${GOOGLE_PROJECT_ID}" \
@@ -29,7 +30,7 @@ handle_error() {
2930
errcode=$? # Remember the error code so we can exit with it after cleanup
3031

3132
# Clean up
32-
delete_app_version
33+
delete_app_version # shellcheck disable=SC2119
3334

3435
exit ${errcode}
3536
}
@@ -39,7 +40,7 @@ trap handle_error ERR
3940
shellcheck ./**/*.sh
4041

4142
# Find all jenkins.sh's and run them.
42-
find . -mindepth 2 -maxdepth 5 -name jenkins.sh -type f | while read path; do
43+
find . -mindepth 2 -maxdepth 5 -name jenkins.sh -type f | while read -r path; do
4344
dir="${path%/jenkins.sh}"
4445
app_version="jenkins-${dir//[^a-z]/}"
4546
(

0 commit comments

Comments
 (0)