also support mounted cifs and so on

This commit is contained in:
6543 2019-09-04 15:18:41 +02:00
parent 5e2ae0e5de
commit 5e16e006e6

2
cp_sh
View File

@ -4,7 +4,7 @@
# @version 0.2

function free_disk() {
df "$1" | grep '/dev/' | sed -r -e "s/[\t\ ]+/ /g" | cut -d ' ' -f 4
df "$1" | tail -n1 | sed -r -e "s/[\t\ ]+/ /g" | cut -d ' ' -f 4
}

md5="2cp"