macosx: silent error because hostame --vestion does no exists
authorJean Privat <jean@pryen.org>
Thu, 2 Mar 2017 14:12:07 +0000 (09:12 -0500)
committerJean Privat <jean@pryen.org>
Thu, 2 Mar 2017 14:12:07 +0000 (09:12 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/tests.sh

index bddecaf..308ff84 100755 (executable)
@@ -148,7 +148,7 @@ else
 fi
 
 # Detect a working hostname command
-if hostname --version | grep coreutils >/dev/null 2>&1; then
+if hostname --version 2>&1 | grep coreutils >/dev/null 2>&1; then
        HOSTNAME="hostname"
 else
        HOSTNAME="hostname -s"