From 0e0ad865d49dbcfcebaae9204c52e8632e1e2ddf Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 2 Feb 2018 20:58:34 -0500 Subject: [PATCH] ; * autogen.sh (check_version): Improve previous change. --- autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 2e6b62db843..518e5dbe830 100755 --- a/autogen.sh +++ b/autogen.sh @@ -85,7 +85,7 @@ check_version () ## /bin/sh should always define the "command" builtin, but for ## some odd reason sometimes it does not on hydra.nixos.org. ## /bin/sh = "BusyBox v1.27.2", "built-in shell (ash)". ? - if command -v command > /dev/null; then + if command -v command > /dev/null 2>&1; then command -v $uprog > /dev/null || return 1 else $uprog --version > /dev/null 2>&1 || return 1 -- 2.39.2