File tree 1 file changed +7
-4
lines changed 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ scanner_v2_create_and_upload_bundle() {
111
111
# and add V4 definitions to the latest offline bundle. It determines the
112
112
# version to use for each release based on the contents of the
113
113
# VULNERABILITY_VERSION file present in each release tag.
114
- #
114
+ # shellcheck disable=SC2120
115
115
scanner_v4_create_and_add_bundles () {
116
116
local latest_bundle=" ${1:- scanner-vuln-updates.zip} "
117
117
@@ -152,17 +152,20 @@ scanner_v4_create_and_add_bundles() {
152
152
* )
153
153
info " fetching schema version for release $release "
154
154
tmp=$( mktemp)
155
+ # shellcheck disable=SC2059
155
156
vuln_version_url=$( printf " $vuln_version_pattern " " $release " )
156
- case $( $curl --write-out " %{http_code}" -o " $tmp " " $vuln_version_url " ) in
157
+ local http_status
158
+ http_status=$( $curl --write-out " %{http_code}" -o " $tmp " " $vuln_version_url " )
159
+ case $http_status in
157
160
200)
158
- version=$( cat $tmp )
161
+ version=$( cat " $tmp " )
159
162
;;
160
163
404)
161
164
info " release tag not found, assuming the release was not cut, skipping..."
162
165
continue
163
166
;;
164
167
* )
165
- die " failed to fetch the v4 offline bundle version for $release : status $status "
168
+ die " failed to fetch the v4 offline bundle version for $release : status $http_status "
166
169
;;
167
170
esac
168
171
;;
You can’t perform that action at this time.
0 commit comments