summaryrefslogtreecommitdiffstats
path: root/src/ci/scripts/select-xcode.sh
blob: 3b9c77d42ba5f74995e2ed1117de32881318ec12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# This script selects the Xcode instance to use.

set -euo pipefail
IFS=$'\n\t'

source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"

if isMacOS; then
    if [[ -s "${SELECT_XCODE-}" ]]; then
        sudo xcode-select -s "${SELECT_XCODE}"
    fi
fi