mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
make the humain-readable a function
I forgot the function !
This commit is contained in:
parent
862cb41d60
commit
b0d2085996
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,11 @@
|
||||||
# PiVPN: client status script
|
# PiVPN: client status script
|
||||||
|
|
||||||
STATUS_LOG="/var/log/openvpn-status.log"
|
STATUS_LOG="/var/log/openvpn-status.log"
|
||||||
|
|
||||||
|
function hr() {
|
||||||
|
numfmt --to=iec-i --suffix=B "$1"
|
||||||
|
}
|
||||||
|
|
||||||
printf "\n"
|
printf "\n"
|
||||||
if [ ! -f "${STATUS_LOG}" ]; then
|
if [ ! -f "${STATUS_LOG}" ]; then
|
||||||
echo "The file: $STATUS_LOG was not found!"
|
echo "The file: $STATUS_LOG was not found!"
|
||||||
|
|
Loading…
Reference in a new issue