From 81a6846d26184378492c0fc434ded23c7e4bca85 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 22 Jul 2017 14:30:47 +0200 Subject: Adding error messages in curl container create script if required decompressors are not installed. --- share/scripts/curl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/share/scripts/curl b/share/scripts/curl index 3d81807..6602a6f 100755 --- a/share/scripts/curl +++ b/share/scripts/curl @@ -216,10 +216,22 @@ case "${IMAGE}" in *.lz) TAR_OPTIONS="--lzip" + + if [ ! -e /usr/bin/lzip ] + then + echo "'${NAME}': /usr/bin/lzip - no such file." >&2 + exit 1 + fi ;; *.xz) TAR_OPTIONS="--xz" + + if [ ! -e /usr/bin/xz ] + then + echo "'${NAME}': /usr/bin/xz - no such file." >&2 + exit 1 + fi ;; *) -- cgit v1.2.3