suppress timeout errors

This commit is contained in:
Thomas Levine 2016-04-04 01:04:04 +00:00
parent 586f46600a
commit a9ba8e79d3

4
urchin
View File

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