Skip to content

Commit bf0d057

Browse files
authored
Update Disk_Utilization.sh
Typo errors fixed
1 parent de37872 commit bf0d057

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Disk_Utilization.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
# default value to use if none specified
44
PERCENT=30
55

6-
# test for command line arguement is present
6+
# test for command line argument is present
77
if [[ $# -le 0 ]]
88
then
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
1212
else
1313
if [[ $1 =~ ^-?[0-9]+([0-9]+)?$ ]]
1414
then
@@ -25,6 +25,6 @@ do
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
3030
done

0 commit comments

Comments
 (0)