From 9e91860ae9b6cccb919e19cc7840f951001915c5 Mon Sep 17 00:00:00 2001 From: quicksilver Date: Mon, 31 May 2021 16:33:30 +0800 Subject: [PATCH] Fix install dependencies scripts file bug (#5511) Signed-off-by: quicksilver --- scripts/install_deps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install_deps.sh b/scripts/install_deps.sh index 2f789022b1..28effd749d 100755 --- a/scripts/install_deps.sh +++ b/scripts/install_deps.sh @@ -1,10 +1,10 @@ #!/usr/bin/env bash -if [[ ! -x "$(command -v apt)" ]]; then +if [[ -x "$(command -v apt)" ]]; then sudo apt install -y g++ gcc make libssl-dev zlib1g-dev libboost-regex-dev \ libboost-program-options-dev libboost-system-dev libboost-filesystem-dev \ libboost-serialization-dev python3-dev libboost-python-dev libcurl4-openssl-dev gfortran libtbb-dev -elif [[ ! -x "$(command -v yum)" ]]; then +elif [[ -x "$(command -v yum)" ]]; then sudo yum install -y epel-release centos-release-scl-rh \ && sudo yum install -y make automake openssl-devel zlib-devel tbb-devel \ libcurl-devel python3-devel boost-devel boost-python \