From e3f76443fa088d1f3b8edc5f9d9a4982b6b81d5d Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Tue, 20 Jun 2017 14:08:39 -0700 Subject: [PATCH] Fix status-simple --- cgi-bin/status-simple | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/status-simple b/cgi-bin/status-simple index 3ac83d6..5e21c58 100755 --- a/cgi-bin/status-simple +++ b/cgi-bin/status-simple @@ -1,7 +1,7 @@ #!/bin/bash TEMP=$(mktemp) SECONDS=5 -if [ $# -eq 1 ]; then SECONDS="$1"; shift; fi +if [ $# -eq 2 ]; then SECONDS="$1"; shift; fi timeout "${SECONDS}" bash "$@" >"$TEMP" 2>/dev/null SUCCESS=$? -- 2.47.3