Browse files

Fixed automatic project lookup when the xcodeproj name contains white…

…spaces
  • Loading branch information...
1 parent 1ef1338 commit dc545bf0f4391052b434d07bbf08acad3802781e @defagos committed Feb 12, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 make-fmwk.sh
View
6 make-fmwk.sh
@@ -234,9 +234,7 @@ fi
# If project name not specified, find it
if [ -z "$param_project_name" ]; then
- # Find all .xcodeproj directories. ls does not provide a way to list directories only,
- # we must do this manually
- xcodeproj_list=`ls -l | grep ".xcodeproj" | grep "^d"`
+ xcodeproj_list=`ls -1 | grep ".xcodeproj"`
# Not found
if [ "$?" -ne "0" ]; then
@@ -251,7 +249,7 @@ if [ -z "$param_project_name" ]; then
fi
# Extract the project name, stripping off the .xcodeproj
- project_name=`echo "$xcodeproj_list" | awk '{print $9}' | sed 's/.xcodeproj//g'`
+ project_name=`echo "$xcodeproj_list" | sed 's/.xcodeproj//g'`
# Else check that the project specified exists
else
if [ ! -d "$EXECUTION_DIR/$param_project_name.xcodeproj" ]; then

0 comments on commit dc545bf

Please sign in to comment.