]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- make sha256sum match command line tool (for "normal" files)
authorArvin Schnell <aschnell@suse.de>
Fri, 7 Aug 2026 07:12:35 +0000 (09:12 +0200)
committerArvin Schnell <aschnell@suse.de>
Fri, 7 Aug 2026 07:12:35 +0000 (09:12 +0200)
client/snbk/CmdMetaParse.cc

index 8b8fcb4aab8bc0af1dda676b88c9a965c969e5cb..527ac4f4f5a53187f97fd2da896aa2fd9749e190 100644 (file)
@@ -61,7 +61,8 @@ namespace snapper
            SN_THROW(Exception(_("Failed to load info.xml.")));
        }
 
-       content = boost::join(cmd.get_stdout(), "\n");
+       if (!cmd.get_stdout().empty())
+           content = boost::join(cmd.get_stdout(), "\n") + "\n";
 
        y2mil(*this);
     }