Merge pull request #606 from vadmeste/pr_out_add_freebsd_support
Add FreeBSD support
This commit is contained in:
@@ -103,6 +103,9 @@ is_supported_os() {
|
||||
check_version "${osx_host_version}" "${OSX_VERSION}"
|
||||
[[ $? -ge 2 ]] && die "Minimum OSX version supported is ${OSX_VERSION}"
|
||||
;;
|
||||
"FreeBSD")
|
||||
os="freebsd"
|
||||
;;
|
||||
"*")
|
||||
echo "Exiting.. unsupported operating system found"
|
||||
exit 1;
|
||||
@@ -112,7 +115,7 @@ is_supported_os() {
|
||||
is_supported_arch() {
|
||||
local supported
|
||||
case ${UNAME##* } in
|
||||
"x86_64")
|
||||
"x86_64" | "amd64")
|
||||
supported=1
|
||||
;;
|
||||
*)
|
||||
|
||||
@@ -121,6 +121,8 @@ func (s *CmdTestSuite) TestGetMcConfigDir(c *C) {
|
||||
c.Assert(dir, Equals, path.Join(u.HomeDir, "mc/"))
|
||||
case "darwin":
|
||||
c.Assert(dir, Equals, path.Join(u.HomeDir, ".mc/"))
|
||||
case "freebsd":
|
||||
c.Assert(dir, Equals, path.Join(u.HomeDir, ".mc/"))
|
||||
default:
|
||||
c.Fail()
|
||||
}
|
||||
@@ -137,6 +139,8 @@ func (s *CmdTestSuite) TestGetMcConfigPath(c *C) {
|
||||
c.Assert(dir, Equals, path.Join(mustGetMcConfigDir(), "config.json"))
|
||||
case "darwin":
|
||||
c.Assert(dir, Equals, path.Join(mustGetMcConfigDir(), "config.json"))
|
||||
case "freebsd":
|
||||
c.Assert(dir, Equals, path.Join(mustGetMcConfigDir(), "config.json"))
|
||||
default:
|
||||
c.Fail()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user