mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 15:17:00 +08:00
Compare commits
1 Commits
8e107dca70
...
db0220d03c
Author | SHA1 | Date | |
---|---|---|---|
db0220d03c |
|
@ -190,7 +190,7 @@ apost_beacon()
|
||||||
|
|
||||||
get_os_type()
|
get_os_type()
|
||||||
{
|
{
|
||||||
test -z "$DFS_OS_TYPE" || { echo "$DFS_OS_TYPE"; return; }
|
test -z "$DFS_OS_TYPE" || ( echo "$DFS_OS_TYPE"; return )
|
||||||
local ans="unknown"
|
local ans="unknown"
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
Darwin*) ans="MacOS";;
|
Darwin*) ans="MacOS";;
|
||||||
|
@ -205,7 +205,7 @@ get_os_type()
|
||||||
|
|
||||||
get_linux_dist()
|
get_linux_dist()
|
||||||
{
|
{
|
||||||
test -z "$DFS_LINUX_DIST" || { echo "$DFS_LINUX_DIST"; return; }
|
test -z "$DFS_LINUX_DIST" || ( echo "$DFS_LINUX_DIST"; return )
|
||||||
local ans="unknown"
|
local ans="unknown"
|
||||||
if [ -f /etc/os-release ]; then
|
if [ -f /etc/os-release ]; then
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
|
|
Loading…
Reference in New Issue
Block a user