Skip to content

Commit

Permalink
Quote dirname output to handle parens in path
Browse files Browse the repository at this point in the history
  • Loading branch information
ps2 committed Sep 26, 2019
1 parent 7b19571 commit 6fe9848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/copy-frameworks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fi
for COUNTER in $(seq 0 $(($SCRIPT_INPUT_FILE_COUNT - 1))); do
SCRIPT_INPUT_VAR="SCRIPT_INPUT_FILE_${COUNTER}"
echo "Stripping binary file from framework path for ${!SCRIPT_INPUT_VAR}"
export ${SCRIPT_INPUT_VAR}=$(dirname "${!SCRIPT_INPUT_VAR}")
export ${SCRIPT_INPUT_VAR}="$(dirname "${!SCRIPT_INPUT_VAR}")"

CARTHAGE_BUILD_FILE="${!SCRIPT_INPUT_VAR/${BUILT_PRODUCTS_DIR}/${CARTHAGE_BUILD_DIR}}"
if [ -e "${CARTHAGE_BUILD_FILE}" ]; then
Expand Down

0 comments on commit 6fe9848

Please sign in to comment.