summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xminimunin6
1 files changed, 3 insertions, 3 deletions
diff --git a/minimunin b/minimunin
index 561e12a..b427c95 100755
--- a/minimunin
+++ b/minimunin
@@ -23,7 +23,7 @@ main() {
23 # read commands in loop 23 # read commands in loop
24 while read command arg; do 24 while read command arg; do
25 25
26 # chomp 26 # chomp and sanitize variables
27 command=`printf %s "${command}" | /usr/bin/tr -cd '[:alnum:]_-. '` 27 command=`printf %s "${command}" | /usr/bin/tr -cd '[:alnum:]_-. '`
28 arg=`printf %s "${arg}" | /usr/bin/tr -cd '[:alnum:]_-. '` 28 arg=`printf %s "${arg}" | /usr/bin/tr -cd '[:alnum:]_-. '`
29 29
@@ -105,7 +105,7 @@ df)
105 /bin/df -P -t noprocfs,devfs,fdescfs,linprocfs,linsysfs,nfs,nullfs | /usr/bin/tail -n +2 | 105 /bin/df -P -t noprocfs,devfs,fdescfs,linprocfs,linsysfs,nfs,nullfs | /usr/bin/tail -n +2 |
106 while read fs blocks used avail cap mount; do 106 while read fs blocks used avail cap mount; do
107 fs=`printf "%s" ${fs} | /usr/bin/tr -c '[:alnum:]' _` 107 fs=`printf "%s" ${fs} | /usr/bin/tr -c '[:alnum:]' _`
108 printf "%s %d" ${fs}.value $(( used * 512 )) 108 printf "%s %d\n" ${fs}.value $(( used * 512 ))
109 done 109 done
110 ;; 110 ;;
111*) 111*)
@@ -335,7 +335,7 @@ EOF
335/bin/df -P -t noprocfs,devfs,fdescfs,linprocfs,linsysfs,nfs,nullfs | /usr/bin/tail -n +2 | 335/bin/df -P -t noprocfs,devfs,fdescfs,linprocfs,linsysfs,nfs,nullfs | /usr/bin/tail -n +2 |
336while read fs blocks used avail cap mount; do 336while read fs blocks used avail cap mount; do
337 fs=`printf "%s" ${fs} | /usr/bin/tr -c '[:alnum:]' _` 337 fs=`printf "%s" ${fs} | /usr/bin/tr -c '[:alnum:]' _`
338 printf "%s %s" ${fs}.label ${mount} 338 printf "%s %s\n" ${fs}.label ${mount}
339done 339done
340;; 340;;
341*) 341*)