Updated the way to get the remaining space on /home and /root

This commit is contained in:
adrien 2022-08-02 21:04:09 +02:00
parent e4c0bb187d
commit af9bba349d
Signed by: adrien
GPG Key ID: 4F17BEA67707AC21

View File

@ -20,14 +20,12 @@ kernelver() {
}
home() {
# disk=$(df -h | awk 'NR==8{print $3, $5}')
home=$(df -h | awk 'NR==8{print $3}')
home=$(df -h /home/ | awk 'NR==2{print $3}')
echo -e "/home: $home"
}
root() {
# disk=$(df -h | awk 'NR==4{print $3, $5}')
root=$(df -h | awk 'NR==4{print $3}')
root=$(df -h /root/ | awk 'NR==2{print $3}')
echo -e "/: $root"
}