From fd35831c4c05319e37e2d0d76fb8a414944f83dc Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 20 Apr 2026 21:02:17 +0200 Subject: Makefile: T8375: improve syntax for artifact detection --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6316e016..738536ef 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ all: .PHONY: checkiso .ONESHELL: checkiso: - if [ ! -f $(ISO_PATH) ]; then + if [[ ! -f $(ISO_PATH) ]]; then echo "Could not find $(ISO_PATH)" exit 1 fi @@ -73,7 +73,7 @@ testtpm: checkiso .PHONY: test-ci-qcow2 .ONESHELL: test-ci-qcow2: - if [ ! -f build/*.qcow2 ]; then + if [[ ! -n $$(ls -t build/*.qcow2 | head -n 1) ]]; then echo "Could not find any QCOW2 disk image" exit 1 fi -- cgit v1.2.3