small cleanup for bsd section

This commit is contained in:
inxi-svn 2014-04-27 21:06:50 +00:00
parent 052a5d16ed
commit 33636dc58b

3
inxi
View file

@ -5424,8 +5424,7 @@ get_hdd_data_basic()
else
# default size is 512, , so use -k for 1024 -H only for size in human readable format
# older bsds don't support -T, pain, so we'll use partial output there
df_test=$( df -k -T 2>/dev/null )
if df -H -T &>/dev/null;then
if df -k -T &>/dev/null;then
df_string='df -k -T'
else
df_string='df -k'