mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bsd fixes
This commit is contained in:
parent
2b4ae02f10
commit
a82db68330
3
inxi
3
inxi
|
@ -4578,7 +4578,8 @@ get_distro_data()
|
||||||
if [[ -f /System/Library/CoreServices/SystemVersion.plist ]];then
|
if [[ -f /System/Library/CoreServices/SystemVersion.plist ]];then
|
||||||
distro=$( grep -A1 -E '(ProductName|ProductVersion)' /System/Library/CoreServices/SystemVersion.plist | grep '<string>' | sed -E 's/<[\/]?string>//g' )
|
distro=$( grep -A1 -E '(ProductName|ProductVersion)' /System/Library/CoreServices/SystemVersion.plist | grep '<string>' | sed -E 's/<[\/]?string>//g' )
|
||||||
distro=$( echo $distro )
|
distro=$( echo $distro )
|
||||||
else
|
fi
|
||||||
|
if [[ -z $distro ]];then
|
||||||
distro='Mac OS X'
|
distro='Mac OS X'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue