File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ shopt -s globstar
19
19
20
20
app_version=" "
21
21
22
+ # shellcheck disable=SC2120
22
23
delete_app_version () {
23
24
if [ -n " ${app_version} " ] || [ $# -gt 0 ]; then
24
25
yes | gcloud --project=" ${GOOGLE_PROJECT_ID} " \
@@ -29,7 +30,7 @@ handle_error() {
29
30
errcode=$? # Remember the error code so we can exit with it after cleanup
30
31
31
32
# Clean up
32
- delete_app_version
33
+ delete_app_version # shellcheck disable=SC2119
33
34
34
35
exit ${errcode}
35
36
}
@@ -39,7 +40,7 @@ trap handle_error ERR
39
40
shellcheck ./** /* .sh
40
41
41
42
# 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
43
44
dir=" ${path%/ jenkins.sh} "
44
45
app_version=" jenkins-${dir// [^a-z]/ } "
45
46
(
You can’t perform that action at this time.
0 commit comments