From: Zachary Vance Date: Tue, 20 Jun 2017 21:08:39 +0000 (-0700) Subject: Fix status-simple X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=e3f76443fa088d1f3b8edc5f9d9a4982b6b81d5d;p=za3k.git Fix status-simple --- 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=$?