blob: d85ed9af31da9bf1950b98ff39b9d644034ffdf4 [file] [log] [blame]
// Copyright 2011, 2012, 2013 Canonical Ltd.
// Licensed under the LGPLv3, see LICENCE file for details.
package utils
import (
"strings"
)
// IsUbuntu executes lxb_release to see if the host OS is Ubuntu.
func IsUbuntu() bool {
out, err := RunCommand("lsb_release", "-i", "-s")
if err != nil {
return false
}
return strings.TrimSpace(out) == "Ubuntu"
}