diff options
author | Javier Jardón <jjardon@gnome.org> | 2017-01-29 19:47:02 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2017-01-30 00:01:43 +0000 |
commit | ba8f36641f00f30f6c2172ff7e546e4baec51220 (patch) | |
tree | 486dda841d69dff9ff4ed162437ebf97becc747a /install_dependencies.sh | |
parent | ae57592af3b7ccbf7d61dfed21550720e0ecdaba (diff) | |
download | ybd-ba8f36641f00f30f6c2172ff7e546e4baec51220.tar.gz |
install_dependencies.sh: Do not use which
Its not really needed and its not installed by default in some
distros (like Fedora25)
Diffstat (limited to 'install_dependencies.sh')
-rwxr-xr-x | install_dependencies.sh | 8 |
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 |