mirror of
https://github.com/Lakr233/vphone-cli.git
synced 2026-09-05 09:04:27 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user