Skip to content

Commit

Permalink
Initial version of xcopen
Browse files Browse the repository at this point in the history
  • Loading branch information
macecchi committed May 4, 2016
0 parents commit 39a31ec
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions xcopen
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
EXT='xcworkspace'
dir=$1

shopt -s nullglob

found=0
for i in $1/*.${EXT}; do
open -a Xcode "$i"
found=1
break
done
[ $found -eq 0 ] && echo "No Xcode workspace found"

shopt -u nullglob

0 comments on commit 39a31ec

Please sign in to comment.