Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #108 from adobe/glenn/build-number
Browse files Browse the repository at this point in the history
Put quotes around filenames
  • Loading branch information
njx committed Sep 10, 2012
2 parents 81cb27a + b137d13 commit df24eff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build_mac.sh
Expand Up @@ -61,12 +61,12 @@ mkdir installer/mac/staging
cp -R "xcodebuild/Release/${BRACKETS_APP_NAME}.app" installer/mac/staging/

# Set the build number, branch and sha on the staged build
cat installer/mac/staging/${BRACKETS_APP_NAME}.app/Contents/www/package.json \
cat "installer/mac/staging/${BRACKETS_APP_NAME}.app/Contents/www/package.json" \
| sed "s:\(\"version\"[^\"]*\"[0-9.]*-\)\([0-9*]\)\(\"\):\1$build_num\3:" \
| sed "s:\(\"branch\"[^\"]*\"\)\([^\"]*\)\(\"\):\1$BRACKETS_BRANCH\3:" \
| sed "s:\(\"SHA\"[^\"]*\"\)\([^\"]*\)\(\"\):\1$brackets_sha\3:" \
> tmp_package_json.txt
mv tmp_package_json.txt installer/mac/staging/${BRACKETS_APP_NAME}.app/Contents/www/package.json
mv tmp_package_json.txt "installer/mac/staging/${BRACKETS_APP_NAME}.app/Contents/www/package.json"

# Build the installer
cd installer/mac
Expand Down

0 comments on commit df24eff

Please sign in to comment.