From 88ea48f4cdbb9bece811b42c7bbf30e3badddfc9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 22 Jul 2017 16:14:04 +0200 Subject: Adding gzip dependency check in curl container create script for completness sake. Signed-off-by: Daniel Baumann --- share/scripts/curl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/share/scripts/curl b/share/scripts/curl index 3a715ca..8e1d0e7 100755 --- a/share/scripts/curl +++ b/share/scripts/curl @@ -142,8 +142,12 @@ then elif [ -x /usr/bin/xz ] then COMPRESSION="xz" -else +elif [ -x /bin/gzip ] +then COMPRESSION="gz" +else + echo "'${NAME}': no supported compressor available (lz, xz, gz)." + exit 1 fi ARCHITECTURE="${ARCHITECTURE:-$(dpkg --print-architecture)}" @@ -233,6 +237,13 @@ done case "${IMAGE}" in *.gz) TAR_OPTIONS="--gzip" + + if [ ! -e /bin/gzip ] + then + echo -en "\n" + echo "'${NAME}': /bin/lzip - no such file." >&2 + exit 1 + fi ;; *.lz) -- cgit v1.2.3