mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-04-24 03:00:16 -04:00
PR#337 Exlude aufs and tmpfs from disk size calculation
This commit is contained in:
@@ -1158,7 +1158,7 @@ detectdisk () {
|
||||
elif [[ "${distro}" == "Mac OS X" ]]; then
|
||||
totaldisk=$(df -H / 2>/dev/null | tail -1)
|
||||
else
|
||||
totaldisk=$(df -h --total 2>/dev/null | tail -1)
|
||||
totaldisk=$(df -h -x aufs -x tmpfs --total 2>/dev/null | tail -1)
|
||||
fi
|
||||
disktotal=$(awk '{print $2}' <<< "${totaldisk}")
|
||||
diskused=$(awk '{print $3}' <<< "${totaldisk}")
|
||||
|
||||
Reference in New Issue
Block a user