Browse Source

mute error out in edge case

#146
rootzoll 6 years ago
parent
commit
0bb1a79733
  1. 2
      home.admin/00infoBlitz.sh

2
home.admin/00infoBlitz.sh

@ -50,7 +50,7 @@ else
color_sd=${color_green}
fi
hdd_free_ratio=$(printf "%d" "$(df -h | grep '/mnt/hdd$' | awk '{ print $4/$2*100 }')") 2>/dev/null
hdd_free_ratio=$(printf "%d" "$(df -h 2>/dev/null | grep '/mnt/hdd$' | awk '{ print $4/$2*100 }')")
hdd=$(printf "%s (%s%%)" "$(df -h | grep '/mnt/hdd$' | awk '{ print $4 }')" "${hdd_free_ratio}")
if [ ${hdd_free_ratio} -lt 10 ]; then

Loading…
Cancel
Save