File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# default value to use if none specified
44PERCENT=30
55
6- # test for command line arguement is present
6+ # test for command line argument is present
77if [[ $# -le 0 ]]
88then
9- printf " There are no disks running with more usage than= %d\n" $PERCENT
10- # test if argument is an integer
11- # if it is, use that as percent, if not use default
9+ printf " No disks are running with more usage than= %d\n" $PERCENT
10+ # test if the argument is an integer
11+ # If it is, use that as percent, if not use default
1212else
1313 if [[ $1 =~ ^-? [0-9]+ ([0-9]+)? $ ]]
1414 then
2525 p=$( echo $data | awk ' {print $2}' )
2626 if [ $used -ge $PERCENT ]
2727 then
28- " $p \" has used $usedecho " WARNING: The partition \ % of total available space - Date: $( date) "
28+ echo " WARNING: The partition \" $p \" has used $used % of total available space - Date: $( date) "
2929 fi
3030done
You can’t perform that action at this time.
0 commit comments