Skip to content

Commit 4c6bac8

Browse files
authored
Merge pull request #2779 from hughns/build-sdk-fix
Escape paths in build_rust_sdk script
2 parents 62976ee + fd54aeb commit 4c6bac8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/sdk/build_rust_sdk.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ else
2929
cd matrix-rust-sdk-$date
3030
git checkout ${rustSdkBranch}
3131
rustSdkPath=$(pwd)
32-
cd ${elementPwd}
32+
cd "${elementPwd}"
3333
fi
3434

3535

36-
cd ${rustSdkPath}
36+
cd "${rustSdkPath}"
3737
git status
3838

3939
read -p "Will build with this version of the Rust SDK ^. Is it correct (yes/no) default to yes? " sdkCorrect
@@ -47,7 +47,7 @@ fi
4747
read -p "Do you want to build the app after (yes/no) default to yes? " buildApp
4848
buildApp=${buildApp:-yes}
4949

50-
cd ${elementPwd}
50+
cd "${elementPwd}"
5151

5252
# If folder ../matrix-rust-components-kotlin does not exist, clone the repo
5353
if [ ! -d "../matrix-rust-components-kotlin" ]; then
@@ -62,9 +62,9 @@ git checkout main
6262
git pull
6363

6464
printf "\nBuilding the SDK for aarch64-linux-android...\n\n"
65-
./scripts/build.sh -p ${rustSdkPath} -m sdk -t aarch64-linux-android -o ${elementPwd}/libraries/rustsdk
65+
./scripts/build.sh -p "${rustSdkPath}" -m sdk -t aarch64-linux-android -o "${elementPwd}/libraries/rustsdk"
6666

67-
cd ${elementPwd}
67+
cd "${elementPwd}"
6868
mv ./libraries/rustsdk/sdk-android-debug.aar ./libraries/rustsdk/matrix-rust-sdk.aar
6969
mkdir -p ./libraries/rustsdk/sdks
7070
cp ./libraries/rustsdk/matrix-rust-sdk.aar ./libraries/rustsdk/sdks/matrix-rust-sdk-${date}.aar

0 commit comments

Comments
 (0)