summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-17 17:09:13 +0800
committerruki <[email protected]>2017-05-17 17:09:13 +0800
commitd8e138bc5ffc852e59d8040e735afb8927cf0429 (patch)
tree51c0216fc80760f99376102fcdfd6236f5828747 /scripts
parentb9c4cc501cff6a48a77d32cb3cddf233e7c76bdf (diff)
modify get.sh to disable install from brew when __local__
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index 895147b6a..e780b34cf 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -12,7 +12,11 @@ echo ' > < | \__/ | /_| | < ___/ '
echo ' /_/\_\_|_| |_|\__ \|_|\_\____| getter '
echo ' '
-brew --version >/dev/null 2>&1 && brew install --HEAD xmake && xmake --version && exit
+if [ 'x__local__' != "x$1" ]
+then
+ brew --version >/dev/null 2>&1 && brew install --HEAD xmake && xmake --version && exit
+fi
+
if [ 0 -ne "$(id -u)" ]
then
sudoprefix=sudo