From: Peter Palfrader Date: Thu, 9 Mar 2017 09:49:15 +0000 (+0100) Subject: and fix quotes X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-nagios.git;a=commitdiff_plain;h=6f523a595d7f3148fc5addd311adac59a1e49bcc and fix quotes --- diff --git a/dsa-nagios-checks/checks/dsa-check-file_age b/dsa-nagios-checks/checks/dsa-check-file_age index 0bfdfc1..f607407 100755 --- a/dsa-nagios-checks/checks/dsa-check-file_age +++ b/dsa-nagios-checks/checks/dsa-check-file_age @@ -104,7 +104,7 @@ done if [ "$total" = 1 ]; then echo -n $msg else - if [ "-n $failed" ]; then + if [ -n "$failed" ]; then echo -n "FAIL: $failed " fi if [ -n "$ok" ]; then