From b5763f8fa7309f95e21271fca99d0a71c05d0fef Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 17 Mar 2015 23:08:17 -0600 Subject: [PATCH] Fail explicitly if curl is missing in contrib/download-frozen-image.sh Signed-off-by: Andrew "Tianon" Page --- Dockerfile.simple | 1 + contrib/download-frozen-image.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile.simple b/Dockerfile.simple index dfe3b26469..12ee7dde30 100644 --- a/Dockerfile.simple +++ b/Dockerfile.simple @@ -12,6 +12,7 @@ FROM debian:jessie # https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ btrfs-tools \ + curl \ gcc \ git \ golang \ diff --git a/contrib/download-frozen-image.sh b/contrib/download-frozen-image.sh index e165f1d149..b45cba9813 100755 --- a/contrib/download-frozen-image.sh +++ b/contrib/download-frozen-image.sh @@ -7,6 +7,11 @@ set -e # debian latest f6fab3b798be 10 weeks ago 85.1 MB # debian latest f6fab3b798be3174f45aa1eb731f8182705555f89c9026d8c1ef230cbf8301dd 10 weeks ago 85.1 MB +if ! command -v curl &> /dev/null; then + echo >&2 'error: "curl" not found!' + exit 1 +fi + usage() { echo "usage: $0 dir image[:tag][@image-id] ..." echo " ie: $0 /tmp/hello-world hello-world"