Skip to content

Commit

Permalink
tools: fix downloadBitcode.sh
Browse files Browse the repository at this point in the history
PACKAGE_VERSION failed to be populated if $THIS_DIR contains whitespace. Wrap them in double-quotes
  • Loading branch information
AdityaSantoso authored May 9, 2021
1 parent d1bb405 commit e366912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/downloadBitcode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euo pipefail

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


pushd ${THIS_DIR}/../apple
pushd "${THIS_DIR}/../apple"

# Cleanup
rm -rf WebRTC.xcframework WebRTC.dSYMs
Expand Down

0 comments on commit e366912

Please sign in to comment.