From 41e4e5adf27328a2db8d1e6f390254e517f53481 Mon Sep 17 00:00:00 2001 From: Stefan Scherer Date: Tue, 3 Mar 2020 14:54:06 +0100 Subject: [PATCH] Make xz compression check case insensitive Signed-off-by: Stefan Scherer --- flash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash b/flash index e926056..788b468 100755 --- a/flash +++ b/flash @@ -573,7 +573,7 @@ if [[ -z $CONFIGURE_ONLY ]] ; then echo "Use ${image}" fi - if [[ "$(file "${image}")" == *"xz compressed data"* ]]; then + if [[ "$(file "${image}" | tr '[:upper:]' '[:lower:]' )" == *"xz compressed data"* ]]; then command -v xz 2>/dev/null || error "Error: unzip not found. Aborting" 1 echo "Uncompressing ${image} ..." xz -d "${image}" -c >/tmp/image.img