From de7c381899c47fb2ef755baa13b7b3e416cc1795 Mon Sep 17 00:00:00 2001 From: Alexander Gudulin Date: Fri, 8 Feb 2019 17:35:11 +0100 Subject: [PATCH] print out tar version when the flag is supported not all the tar implementations support --version flag e.g. the one used in openbsd doesn't, so the installation process fails --- scripts/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index e352e55caf042..4ed1062aa1308 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -98,8 +98,10 @@ fi if [ $ret -eq 0 ] && [ -x "$tar" ]; then echo "tar=$tar" - echo "version:" - $tar --version + if [ $tar --version > /dev/null 2>&1 ]; then + echo "version:" + $tar --version + fi ret=$? fi