diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-04-20 21:02:17 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-04-20 21:02:17 +0200 |
| commit | fd35831c4c05319e37e2d0d76fb8a414944f83dc (patch) | |
| tree | 237a7a5fe3347e43e5ad9cafcdf8f25c8c02e7a7 | |
| parent | 13ed10dc78c7008dc10cbc237f1e18909b5ef0e6 (diff) | |
| download | vyos-build-fd35831c4c05319e37e2d0d76fb8a414944f83dc.tar.gz vyos-build-fd35831c4c05319e37e2d0d76fb8a414944f83dc.zip | |
Makefile: T8375: improve syntax for artifact detection
| -rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
