summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-04-22 07:40:21 +0800
committerTitanSnow <[email protected]>2017-04-22 07:40:21 +0800
commit6e2c2a0e6ce8cd1906c483bef8c118ae6e0fe838 (patch)
treee60f780d1c91a0ab6d665add3e25cf57e4e0aca4 /scripts
parent13dca8fd52df75a9ab5f1176027bd3ff0a50977a (diff)
add support of brew
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index cb81948f9..b4221f87a 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -3,6 +3,7 @@
# xmake getter
# usage: bash <(curl -s <my location>) [branch]
+brew --version >/dev/null 2>&1 && brew install --HEAD xmake && xmake --version && exit
if [ 0 -ne $(id -u) ]
then
sudoprefix=sudo