1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

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

This commit is contained in:
Glenn Morris 2018-02-02 20:58:34 -05:00
parent c532a8015e
commit 0e0ad865d4

View file

@ -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