[pmg-devel] [PATCH pmg-api 1/5] backup: fix die invocation

Stoiko Ivanov s.ivanov at proxmox.com
Wed Feb 24 19:30:58 CET 2021


Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 src/PMG/Backup.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PMG/Backup.pm b/src/PMG/Backup.pm
index 275fa12..303bbb4 100644
--- a/src/PMG/Backup.pm
+++ b/src/PMG/Backup.pm
@@ -246,7 +246,7 @@ sub pmg_backup_pack {
 	pmg_backup($dirname, $include_statistics);
 
 	system("rm -f $filename; tar czf $filename --strip-components=1 -C $dirname .") == 0 ||
-	    die "unable to create backup archive: ERROR";
+	    die "unable to create backup archive: ERROR\n";
     };
     my $err = $@;
 
-- 
2.20.1





More information about the pmg-devel mailing list