Commit 0e0ad865 authored by Glenn Morris's avatar Glenn Morris

; * autogen.sh (check_version): Improve previous change.

parent c532a801
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment