Merge pull request #245 from morphis/f/print-snap-revision

Print snap revision if running inside a snap
This commit is contained in:
Simon Fels 2017-05-09 09:43:51 +02:00 committed by GitHub
commit fdbd63efa3

View file

@ -53,6 +53,12 @@ class SystemInformation {
<< anbox::build::print_version()
<< std::endl;
if (anbox::utils::is_env_set("SNAP_REVISION")) {
s << "snap-revision: "
<< anbox::utils::get_env_value("SNAP_REVISION")
<< std::endl;
}
s << "os:" << std::endl
<< " name: " << os_info_.name << std::endl
<< " version: " << os_info_.version << std::endl