Skip to content

Commit

Permalink
Stripped out characters different than numbers and dots for compatibl…
Browse files Browse the repository at this point in the history
…ity reasons
  • Loading branch information
blackandred committed Apr 14, 2019
1 parent 356859c commit f9a23f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/checks/disk-space
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ "${MOCK_DF_OUTPUT}" ]]; then
df_output="${MOCK_DF_OUTPUT}"
fi

space=$(echo ${df_output} | tail -n 1 | tr -d "[:space:]")
space=$(echo ${df_output} | tail -n 1 | tr -d "[:space:]" | tr -dc '0-9\.')
space=${space//,/.}

if [[ $(echo "${space}<${MIN_REQ_SPACE}" | bc -l) == "1" ]]; then
Expand Down

0 comments on commit f9a23f4

Please sign in to comment.