Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
- fixed high level if() statement syntax (it was off a bit)
  • Loading branch information
will-ashworth committed Mar 5, 2014
1 parent d3857f0 commit 72adade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/loadwatch_cpanel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ done
LOAD=`cat /proc/loadavg | awk '{print $1}' | awk -F '.' '{print $1}'`

# Trip (check whether or not to run it)
if [ $LOAD -ge $THRESH || $FORCE = "1" ]
if [ [$LOAD -ge $THRESH] || [$FORCE = "1"] ]
then

# Only log triggered loads.
Expand Down

0 comments on commit 72adade

Please sign in to comment.