Use command instead of which for apt-get existential check in bootstrap.sh
This commit is contained in:
1 parent
179305eea1
commit
592c95eaeb
1 file changed
+1
-1
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user