summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-07 11:29:32 +0800
committerTitanSnow <[email protected]>2017-05-07 11:29:32 +0800
commit9bab139e1e8f441e15555f721ecb3d7d308376d7 (patch)
tree99e4bb6803e1745f5fb2878217ef8767b36ff869 /scripts
parente6c6aba7af39eb8dba8d564c085d6b9cdfae32d0 (diff)
add --needed for pacman
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index 0468e3ef1..88b76a25a 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -50,7 +50,7 @@ install_tools()
{ apt-get --version >/dev/null 2>&1 && $sudoprefix apt-get install -y git build-essential libreadline-dev; } ||
{ yum --version >/dev/null 2>&1 && $sudoprefix yum install -y git readline-devel && $sudoprefix yum groupinstall -y 'Development Tools'; } ||
{ zypper --version >/dev/null 2>&1 && $sudoprefix zypper --non-interactive install git readline-devel && $sudoprefix zypper --non-interactive install -t pattern devel_C_C++; } ||
- { pacman -V >/dev/null 2>&1 && $sudoprefix pacman -S --noconfirm git base-devel; }
+ { pacman -V >/dev/null 2>&1 && $sudoprefix pacman -S --noconfirm --needed git base-devel; }
}
test_tools || { install_tools && test_tools; } || my_exit 'Dependencies Installation Fail' 1
branch=