From 8c66d1020521d249e0f8e2eac0841e8159fad515 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 16 Jun 2016 10:48:10 -0400 Subject: [PATCH] Hide 'file' error message when its missing --- cryptest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptest.sh b/cryptest.sh index c7605147..794c5f1b 100755 --- a/cryptest.sh +++ b/cryptest.sh @@ -252,7 +252,7 @@ if [ "$IS_X86" -ne "0" ] || [ "$IS_X64" -ne "0" ]; then fi # LD-Gold linker testing -HAVE_LDGOLD=$(file `which ld.gold 2>&1` | $GREP -v "no ld.gold" | cut -d":" -f 2 | $EGREP -i -c "elf") +HAVE_LDGOLD=$(file `which ld.gold 2>&1` 2>/dev/null | $GREP -v "no ld.gold" | cut -d":" -f 2 | $EGREP -i -c "elf") # Set to 0 if you don't have Valgrind. Valgrind tests take a long time... HAVE_VALGRIND=$(which valgrind 2>&1 | $GREP -v "no valgrind" | $GREP -i -c valgrind)