summaryrefslogtreecommitdiff
path: root/tests/diskfree
blob: d6d29b5a7429d055299d5a414ca8e04204af3369 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

if [ "x$1" = "x" ]; then
    echo expected partition as first argument
    exit 1
fi

df -P $1 | tail -n1 | awk '{ print $4 * 1024 }'