Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixes path used to find SDK
  • Loading branch information
jbuhler-c4 committed Apr 3, 2018
commit 995fc898662f85c21c2b1ac6a756fff1a2c6ba54
2 changes: 1 addition & 1 deletion search_sdks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if [ $valid_flag -eq "0" ]; then

prompt="Select SDK to use:"

loc1=( $(find /Applications/XCode.app -type d -name "MacOSX10.*.sdk") )
loc1=( $(find /Applications/Xcode.app -type l -name "MacOSX10.*.sdk") )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if it's worth maintaining the old behavior, but \( -type d -o -type l \) would match both directories and links.

loc2=( $(find /Developer/SDKs -maxdepth 1 -type d -name "MacOSX10.*.sdk") )

options=("${loc1[@]}" "${loc2[@]}")
Expand Down