v39lfy / google-toolbox-for-mac

Automatically exported from code.google.com/p/google-toolbox-for-mac
Apache License 2.0
0 stars 0 forks source link

RunIPhoneUnitTest.sh breaks for paths with spaces #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a directory with a space in the name, e.g. "SVN Repositories"
2. Checkout GTM into that directory (or a subdirectory)
3. Open GTMiPhone.xcodeproj
4. Build

What is the expected output? 
A clean build.

What do you see instead?
- Build fails with "Command /bin/sh failed with exit code 1".
- last line of script output is "usage: dirname path"

What version of the product are you using? On what operating system?
svn trunk rev131 (also exhibits in 1.5.1, which is why I checked out the trunk)
MacOS X 10.5.7, iPhone SDK 2.2.1

Please provide any additional information below.

This is fixed by changing line 53 of RunIPhoneUnitTest.sh from:

  ScriptDir=$(dirname $(echo $0 | sed -e "s,^\([^/]\),$(pwd)/\1,"))

to:

  ScriptDir=$(dirname "$(echo $0 | sed -e "s,^\([^/]\),$(pwd)/\1,")")

Original issue reported on code.google.com by pcgora...@gmail.com on 18 May 2009 at 6:15

GoogleCodeExporter commented 9 years ago
tx!

Original comment by thoma...@gmail.com on 19 May 2009 at 1:35