Merge pull request #245 from morphis/f/print-snap-revision
Print snap revision if running inside a snap
This commit is contained in:
commit
fdbd63efa3
1 changed files with 6 additions and 0 deletions
|
|
@ -53,6 +53,12 @@ class SystemInformation {
|
||||||
<< anbox::build::print_version()
|
<< anbox::build::print_version()
|
||||||
<< std::endl;
|
<< 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
|
s << "os:" << std::endl
|
||||||
<< " name: " << os_info_.name << std::endl
|
<< " name: " << os_info_.name << std::endl
|
||||||
<< " version: " << os_info_.version << std::endl
|
<< " version: " << os_info_.version << std::endl
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue