/usr/share/broctl/scripts/helpers/df is in broctl 1.4-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/bash
#
# df <path>
#
# Returns: <fs> <fs-size-kB> <fs-used-kB> <fs-avail-kB>
. `dirname $0`/../broctl-config.sh
if [ ! -d "$1" ]; then
echo "not a directory: $1"
exit 1
fi
df -kP "$1" | awk '{print $1, $2, $3, $4}' | tail -1 | awk -v def_factor=1024 -f "${helperdir}/to-bytes.awk"
|