Use command instead of which for apt-get existential check in bootstrap.sh

This commit is contained in:
Erik Nomitch
2014-05-12 13:29:42 -07:00
committed by Jose Diaz-Gonzalez
parent 179305eea1
commit 592c95eaeb

View File

@@ -3,7 +3,7 @@ set -eo pipefail
export DEBIAN_FRONTEND=noninteractive
export DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
if ! which apt-get &>/dev/null
if ! command -v apt-get &>/dev/null
then
echo "This installation script requires apt-get. For manual installation instructions, consult https://github.com/progrium/dokku ."
exit 1