From 85ab9944fa2efa95670554f792e4ef5b7715c7db Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 20 Sep 2013 16:05:43 +0200 Subject: [PATCH] bootstrap.sh: Add shebang, Error out when apt-get is not found ...to fail more gracefully on systems without apt. --- bootstrap.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index 09087b613..49517359a 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,7 +1,15 @@ +#!/usr/bin/env sh + set -e export DEBIAN_FRONTEND=noninteractive export DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"} +if ! which apt-get &>/dev/null +then + echo "This installation script requres apt-get. For manual installation instructions, consult https://github.com/progrium/dokku ." + exit 1 +fi + apt-get update apt-get install -y git make curl software-properties-common