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

This commit is contained in:
Erik Nomitch authored and Jose Diaz-Gonzalez committed 2014-11-15 16:38:40 -05:00
1 parent 179305eea1
commit 592c95eaeb
1 file changed
+1 -1
+1 -1
View File
@@ -3,7 +3,7 @@ set -eo pipefail
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
export DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"} 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 then
echo "This installation script requires apt-get. For manual installation instructions, consult https://github.com/progrium/dokku ." echo "This installation script requires apt-get. For manual installation instructions, consult https://github.com/progrium/dokku ."
exit 1 exit 1