suppress timeout errors

This commit is contained in:
Thomas Levine 2016-04-04 01:04:04 +00:00
parent 586f46600a
commit a9ba8e79d3
1 changed files with 2 additions and 2 deletions

4
urchin
View File

@ -648,9 +648,9 @@ main() {
if test -n "${urchin_timeout}"; then
# Choose the timeout command
if timeout -t 0 true; then
if timeout -t 0 true 2> /dev/null; then
TIMEOUT="timeout -t ${urchin_timeout}"
elif timeout 0 true; then
elif timeout 0 true 2> /dev/null; then
TIMEOUT="timeout ${urchin_timeout}"
else
echo I couldn\'t figure out how to use your version of timeout >&2