Skip to content

Commit e366912

Browse files
tools: fix downloadBitcode.sh
PACKAGE_VERSION failed to be populated if $THIS_DIR contains whitespace. Wrap them in double-quotes
1 parent d1bb405 commit e366912

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/downloadBitcode.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -euo pipefail
44

55
THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
6-
PACKAGE_VERSION=$(cat ${THIS_DIR}/../package.json \
6+
PACKAGE_VERSION=$(cat "${THIS_DIR}/../package.json" \
77
| grep "\"version\":" \
88
| head -1 \
99
| awk -F: '{ print $2 }' \
@@ -12,7 +12,7 @@ PACKAGE_VERSION=$(cat ${THIS_DIR}/../package.json \
1212
WEBRTC_DL="https://github.com/react-native-webrtc/react-native-webrtc/releases/download/${PACKAGE_VERSION}/WebRTC.tar.xz"
1313

1414

15-
pushd ${THIS_DIR}/../apple
15+
pushd "${THIS_DIR}/../apple"
1616

1717
# Cleanup
1818
rm -rf WebRTC.xcframework WebRTC.dSYMs

0 commit comments

Comments
 (0)