summaryrefslogtreecommitdiff
path: root/install_dependencies.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install_dependencies.sh')
-rwxr-xr-xinstall_dependencies.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/install_dependencies.sh b/install_dependencies.sh
index e8e931d..113ca03 100755
--- a/install_dependencies.sh
+++ b/install_dependencies.sh
@@ -29,7 +29,7 @@ fi
installed=false
# install dependencies for debian, ubuntu
-which apt-get 2>&1 > /dev/null
+command -v apt-get >/dev/null 2>&1
if [ $? -eq 0 ]; then
$SUDO apt-get -qq update
$SUDO apt-get -qq install build-essential gawk git m4 wget python python-pip git
@@ -41,7 +41,7 @@ if [ $? -eq 0 ]; then
fi
# install for fedora
-which dnf 2>&1 > /dev/null
+command -v dnf >/dev/null 2>&1
if [ $? -eq 0 ] && [ $installed = false ]; then
$SUDO dnf install -y which make automake gcc gcc-c++ gawk git m4 wget python python-pip git
if [ $? -ne 0 ]; then
@@ -52,7 +52,7 @@ if [ $? -eq 0 ] && [ $installed = false ]; then
fi
# install for aws
-which yum 2>&1 > /dev/null
+command -v yum >/dev/null 2>&1
if [ $? -eq 0 ] && [ $installed = false ]; then
$SUDO yum install -y which make automake gcc gcc-c++ gawk git m4 wget python python-pip git
if [ $? -ne 0 ]; then
@@ -63,7 +63,7 @@ if [ $? -eq 0 ] && [ $installed = false ]; then
fi
# install for Arch
-which pacman 2>&1 > /dev/null
+command -v pacman >/dev/null 2>&1
if [ $? -eq 0 ] && [ $installed = false ]; then
$SUDO pacman -S --noconfirm which make automake gcc gawk git m4 wget python2 python2-pip git
if [ $? -ne 0 ]; then