dsa-check-statusfile: port to python3
[mirror/dsa-nagios.git] / dsa-nagios-checks / checks / dsa-check-file_age
index ee49e6c..f607407 100755 (executable)
@@ -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
@@ -113,4 +113,4 @@ else
        echo
        echo -n $msg
 fi
-       exit $EXIT
+exit $EXIT