brew/package/scripts/preinstall

14 lines
228 B
Plaintext
Raw Normal View History

2022-12-19 17:43:51 +01:00
#!/bin/bash
# Checked for installed CLT
if [[ -e "/Library/Developer/CommandLineTools/usr/bin/git" ]]; then
exit 0
fi
if /usr/bin/xcode-select --install; then
exit 0
fi
printf "Failed to install CommandLine Tools"
exit 1