testdiff2/tools/get_xcode_version.sh

4 lines
71 B
Bash
Executable File

#!/bin/bash
xcodebuild -version 2>&1 | (head -n1) | awk '{print $2}'