diff options
author | Elias Howell <cantabo.angelis@gmail.com> | 2023-01-02 13:59:13 -0500 |
---|---|---|
committer | Elias Howell <cantabo.angelis@gmail.com> | 2023-01-02 13:59:13 -0500 |
commit | 19ad8e5fb4c8b0cfa44038a62f84443b1488107d (patch) | |
tree | c03f8255dfdba4dcb678a9432e732ebbfe9bfd48 /modules | |
parent | 345f4e678eefc7aba92da7c0f90d5500e3ca6631 (diff) |
quotes prevent glob and word splitting + spelling
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/disksize | 2 | ||||
-rwxr-xr-x | modules/networkdowntraffic | 10 | ||||
-rwxr-xr-x | modules/publicip | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/modules/disksize b/modules/disksize index babd950..1582cc0 100755 --- a/modules/disksize +++ b/modules/disksize @@ -1,6 +1,6 @@ #!/bin/bash -# Prints out the total disk memory and the availeable memory +# Prints out the total disk memory and the available memory PREFIX=' ' diff --git a/modules/networkdowntraffic b/modules/networkdowntraffic index e8d3a74..76e8d8d 100755 --- a/modules/networkdowntraffic +++ b/modules/networkdowntraffic @@ -6,13 +6,13 @@ PREFIX=' ' get_down_traffic() { - RECIEVE1=0 - RECIEVE2=0 + RECEIVE1=0 + RECEIVE2=0 IFACES=$(ip -o link show | awk -F': ' '{print $2}') for IFACE in $IFACES; do if [ $IFACE != "lo" ]; then - RECIEVE1=$(($(ip -s -c link show $IFACE | tail -n3 | head -n 1 | cut -d " " -f5) + $RECIEVE1)) + RECEIVE1=$(($(ip -s -c link show $IFACE | tail -n3 | head -n 1 | cut -d " " -f5) + $RECEIVE1)) fi done @@ -21,11 +21,11 @@ get_down_traffic() IFACES=$(ip -o link show | awk -F': ' '{print $2}') for IFACE in $IFACES; do if [ $IFACE != "lo" ]; then - RECIEVE2=$(($(ip -s -c link show $IFACE | tail -n3 | head -n 1 | cut -d " " -f5) + $RECIEVE2)) + RECEIVE2=$(($(ip -s -c link show $IFACE | tail -n3 | head -n 1 | cut -d " " -f5) + $RECEIVE2)) fi done - echo "$PREFIX$(expr $(expr $RECIEVE2 - $RECIEVE1 ) / 1000)KB/s" + echo "$PREFIX$(expr $(expr $RECEIVE2 - $RECEIVE1 ) / 1000)KB/s" } get_down_traffic diff --git a/modules/publicip b/modules/publicip index 2e94e04..bdcb6a1 100755 --- a/modules/publicip +++ b/modules/publicip @@ -1,6 +1,6 @@ #!/bin/bash -# Prints out your public IP adress +# Prints out your public IP address # Depends on curl PREFIX=' ' |