Skip to content

Commit f290782

Browse files
committed
Fix build spm url
1 parent cc76e14 commit f290782

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tools/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,10 @@ update_spm_info(){
281281
version=`cat sdk-version.txt`
282282
lp_framework="Leanplum.xcframework.zip"
283283
github_url="https://github.com/Leanplum/Leanplum-iOS-SDK/releases/download"
284+
github_url_escaped="https:\/\/github.com\/Leanplum\/Leanplum-iOS-SDK\/releases\/download"
284285
url="$github_url/$version/$lp_framework"
285-
awk -v value="\"$url\"," '!x{x=sub(/url: .*/, "url: "value)}1' $package_file > $package_tmp_file \
286+
sub="!x{x=sub(/url: \\\"${github_url_escaped}.*/, \"url: \"value)}1"
287+
awk -v value="\"$url\"," "$sub" $package_file > $package_tmp_file \
286288
&& mv $package_tmp_file $package_file
287289
}
288290

0 commit comments

Comments
 (0)