diff options
| author | ruki <[email protected]> | 2017-05-17 17:09:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-17 17:09:13 +0800 |
| commit | d8e138bc5ffc852e59d8040e735afb8927cf0429 (patch) | |
| tree | 51c0216fc80760f99376102fcdfd6236f5828747 /scripts | |
| parent | b9c4cc501cff6a48a77d32cb3cddf233e7c76bdf (diff) | |
modify get.sh to disable install from brew when __local__
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.sh | 6 |
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 |
