ignore devtmpfs

This commit is contained in:
Jade Angrboða
2021-09-26 18:52:17 -07:00
parent c3a4789044
commit 9f6a62a812

View File

@@ -1765,7 +1765,7 @@ detectdisk () {
totaldisk=$(df -H / 2>/dev/null | tail -1)
fi
else
totaldisk=$(df -h -x aufs -x tmpfs -x overlay -x drvfs --total 2>/dev/null | tail -1)
totaldisk=$(df -h -x aufs -x tmpfs -x overlay -x drvfs -x devtmpfs --total 2>/dev/null | tail -1)
fi
disktotal=$(awk '{print $2}' <<< "${totaldisk}")
diskused=$(awk '{print $3}' <<< "${totaldisk}")