From 52e3fe7cf3dc66c7a515957175702a90d531984a Mon Sep 17 00:00:00 2001 From: Samuel Cochran Date: Thu, 11 Aug 2016 10:25:26 +1000 Subject: [PATCH] Only on Darwin --- move-in | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/move-in b/move-in index 59bd7ac..b61c354 100755 --- a/move-in +++ b/move-in @@ -2,16 +2,18 @@ pushd $HOME - if ! xcode-select --print-path > /dev/null; then - echo "Requesting install for Command Line Tools, press ENTER to continue." - /usr/bin/xcode-select --install - read - fi - - if git --version | grep -vq license; then - echo "You need to accept the Xcode license, press ENTER to continue." - read - sudo xcodebuild -license + if [[ "$(uname -s)" = "Darwin" ]]; then + if ! xcode-select --print-path > /dev/null; then + echo "Requesting install for Command Line Tools, press ENTER to continue." + /usr/bin/xcode-select --install + read + fi + + if git --version | grep -vq license; then + echo "You need to accept the Xcode license, press ENTER to continue." + read + sudo xcodebuild -license + fi fi if [[ -e $HOME/.home ]]; then