Skip to content

Commit

Permalink
fix: check_used value not number
Browse files Browse the repository at this point in the history
  • Loading branch information
lework authored Apr 18, 2022
1 parent 2003047 commit c1ef43c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions os-check/files/check_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ function check_used() {

item=$1
value=${2:-0}

[[ !"$value" =~ ^|0-9|+$ ]] && return

if [[ ${value%.*} -ge ${critical_threshold%.*} ]]; then
critical=${critical}'"'${item}'",'
Expand Down

0 comments on commit c1ef43c

Please sign in to comment.