Exclude NFS/CIFS

This is to avoid the server stuck when SSHing it when remote share is unavailable
This commit is contained in:
Poil 2024-04-23 10:51:03 +02:00 committed by GitHub
parent 8ad307472f
commit 182d77f0f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,6 +61,6 @@ while read line; do
# print usage line & bar # print usage line & bar
echo "${line}" | awk '{ printf("%-31s%+3s used out of %+4s\n", $1, $2, $3); }' | sed -e 's/^/ /' echo "${line}" | awk '{ printf("%-31s%+3s used out of %+4s\n", $1, $2, $3); }' | sed -e 's/^/ /'
echo -e "${bar}" | sed -e 's/^/ /' echo -e "${bar}" | sed -e 's/^/ /'
done < <(df -H -x zfs -x squashfs -x tmpfs -x devtmpfs -x overlay --output=target,pcent,size | tail -n+2) done < <(df -H -x zfs -x squashfs -x tmpfs -x devtmpfs -x overlay -x nfs -x nfs4 -x cifs --output=target,pcent,size | tail -n+2)
printf "\n" printf "\n"