diff options
| author | ruki <[email protected]> | 2019-08-09 22:36:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-09 09:39:29 +0800 |
| commit | 4a5dca117a84fd09ddac326280336f317689644c (patch) | |
| tree | 8b3a18a7cc25a1d42f4d70978104f50984d27838 /scripts | |
| parent | fcad680b2021aa9bddb364943d3c0c563850e9b2 (diff) | |
improve get.sh
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh index ad8237470..6b1c4fac7 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -83,7 +83,7 @@ install_tools() { yum --version >/dev/null 2>&1 && $sudoprefix yum install -y git readline-devel ccache && $sudoprefix yum groupinstall -y 'Development Tools'; } || { zypper --version >/dev/null 2>&1 && $sudoprefix zypper --non-interactive install git readline-devel ccache && $sudoprefix zypper --non-interactive install -t pattern devel_C_C++; } || { pacman -V >/dev/null 2>&1 && $sudoprefix pacman -S --noconfirm --needed git base-devel ccache; } || - { pkg help >/dev/null 2>&1 && $sudoprefix pkg install -y git getconf build-essential readline ccache; } + { pkg help >/dev/null 2>&1 && pkg install -y git getconf build-essential readline ccache; } } test_tools || { install_tools && test_tools; } || my_exit "$(echo -e 'Dependencies Installation Fail\nThe getter currently only support these package managers\n\t* apt\n\t* yum\n\t* zypper\n\t* pacman\nPlease install following dependencies manually:\n\t* git\n\t* build essential like `make`, `gcc`, etc\n\t* libreadline-dev (readline-devel)\n\t* ccache (optional)')" 1 branch=master |
