I've been trying to solve this issue for the better part of the day and can't find anything on the net as a hint or remedy.
Trying to install xcode command line tools ONLY on Sierra via my installer bash script, but the [xcode-select --install] command that's defined in my bash script, is backgrounded, so other parts of my script are being executed prematurely. Has anyone ever experienced this and if so, what was your workaround.
FYI: The below code is installing [xcode] then [brew, python, pyside, etc....] and it's being done this way over using the default method [/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"] because in the Installer I've created with AppleScript, I'm executing the bash script with admin privilages, which the default method of installing brew, chokes on.
Here's an excerpt of what the bash script looks like:
/usr/bin/curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1
/usr/local/bin/brew install python
/usr/local/bin/brew tap cartr/qt4
/usr/local/bin/brew tap-pin cartr/qt4
/usr/local/bin/brew install cartr/qt4/qt@4
/usr/local/bin/brew install cmake
/usr/local/bin/pip install wheel requests PySide
Apologies for sounding like I'm rambling. Sleep deprivation will do that to ya!
Thanks in advance,