summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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