mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 02:09:15 +01:00
mute error out in edge case
This commit is contained in:
parent
cc7fcc61be
commit
0bb1a79733
@ -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…
Reference in New Issue
Block a user