make: fix vm_list exit code when backups exist

[ "$$found" = "0" ] && echo ... returns exit 1 when backups exist,
which propagates as a make rule failure. Replace it with if/fi so the
target exits successfully in both cases.
This commit is contained in:
sindo
2026-04-21 22:04:00 +03:00
committed by zqxwce
parent 120d6f9862
commit 5f151aca45
+1 -1
View File
@@ -228,7 +228,7 @@ vm_list:
fi; \
found=1; \
done; \
[ "$$found" = "0" ] && echo " (no backups yet — run: make vm_backup NAME=<name>)"; \
if [ "$$found" = "0" ]; then echo " (no backups yet — run: make vm_backup NAME=<name>)"; fi; \
else \
echo " (no backups yet — run: make vm_backup NAME=<name>)"; \
fi