summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-04-20 21:02:17 +0200
committerChristian Breunig <christian@breunig.cc>2026-04-20 21:02:17 +0200
commitfd35831c4c05319e37e2d0d76fb8a414944f83dc (patch)
tree237a7a5fe3347e43e5ad9cafcdf8f25c8c02e7a7
parent13ed10dc78c7008dc10cbc237f1e18909b5ef0e6 (diff)
downloadvyos-build-fd35831c4c05319e37e2d0d76fb8a414944f83dc.tar.gz
vyos-build-fd35831c4c05319e37e2d0d76fb8a414944f83dc.zip
Makefile: T8375: improve syntax for artifact detection
-rw-r--r--Makefile4
1 files 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