make the humain-readable a function

I forgot the function !
This commit is contained in:
azlux 2017-10-10 01:15:03 +02:00 committed by GitHub
parent 862cb41d60
commit b0d2085996

View file

@ -2,6 +2,11 @@
# PiVPN: client status script
STATUS_LOG="/var/log/openvpn-status.log"
function hr() {
numfmt --to=iec-i --suffix=B "$1"
}
printf "\n"
if [ ! -f "${STATUS_LOG}" ]; then
echo "The file: $STATUS_LOG was not found!"