From 6fb08fe2affbdc40fe26abe10f305093f0b55e99 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 25 May 2017 11:24:37 -0600 Subject: [PATCH] check python, replace which with type -p --- setup-deps-ubuntu.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup-deps-ubuntu.bash b/setup-deps-ubuntu.bash index a6c84a4..07f774b 100644 --- a/setup-deps-ubuntu.bash +++ b/setup-deps-ubuntu.bash @@ -29,8 +29,8 @@ sudo bash -c "apt-get update -qq -y < /dev/null" > /dev/null #fi # git, wget, curl, build-essential -if [ -z "$(which pkg-config | grep pkg-config)" ] || [ -z "$(which git | grep git)" ] || [ -z "$(which wget | grep wget)" ] || [ -z "$(which curl | grep curl)" ] || [ -z "$(which gcc | grep gcc)" ] || [ -z "$(which rsync | grep rsync)" ] +if [ -z "$(type -p pkg-config)" ] || [ -z "$(type -p git)" ] || [ -z "$(type -p wget)" ] || [ -z "$(type -p curl)" ] || [ -z "$(type -p gcc)" ] || [ -z "$(type -p rsync)" || [ -z "$(type -p python)" ] then - echo "installing git, wget, curl, build-essential, rsync, pkg-config..." - sudo bash -c "apt-get install -qq -y git wget curl build-essential rsync pkg-config < /dev/null" > /dev/null 2>/dev/null + echo "installing git, wget, curl, build-essential, rsync, pkg-config, python..." + sudo bash -c "apt-get install -qq -y git wget curl build-essential rsync pkg-config python < /dev/null" > /dev/null 2>/dev/null fi