Skip to content

Commit 477b71e

Browse files
committed
Fix use of static_linux_sdk_checksum local
1 parent 149e5d1 commit 477b71e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/scripts/install-and-build-with-sdk.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,21 +108,21 @@ find_latest_swift_version() {
108108

109109
log "Found latest patch version: $latest_version"
110110

111-
local static_checksum=""
111+
local static_linux_sdk_checksum=""
112112
if [[ "$INSTALL_STATIC_LINUX" == true ]]; then
113-
static_checksum=$(echo "$releases_json" | jq -r --arg version "$latest_version" '
113+
static_linux_sdk_checksum=$(echo "$releases_json" | jq -r --arg version "$latest_version" '
114114
.[]
115115
| select(.name == $version)
116116
| .platforms[]
117117
| select(.platform == "static-sdk")
118118
| .checksum
119119
')
120120

121-
if [[ -z "$static_linux_checksum" ]]; then
121+
if [[ -z "$static_linux_sdk_checksum" ]]; then
122122
fatal "No Static Linux Swift SDK checksum found for Swift $latest_version"
123123
fi
124124

125-
log "Found Static Linux Swift SDK checksum: ${STATIC_LINUX_SDK_CHECKSUM:0:12}..."
125+
log "Found Static Linux Swift SDK checksum: ${static_linux_sdk_checksum:0:12}..."
126126
fi
127127

128128
local wasm_checksum=""

0 commit comments

Comments
 (0)