From 94607e4ae4959cc0b85c268daaefe3f2187c5575 Mon Sep 17 00:00:00 2001 From: mboelen Date: Mon, 20 Apr 2015 11:35:02 +0200 Subject: [PATCH] Redirect sysctl errors properly --- include/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions b/include/functions index 2737a660..eb272730 100644 --- a/include/functions +++ b/include/functions @@ -623,7 +623,7 @@ # NetBSD: machdep.dmi.system-product # OpenBSD: hw.product - SHORT=`sysctl -a | egrep "(hw.product|machdep.dmi.system-product)" 2> /dev/null | head -1 | sed 's/ = /=/' | awk -F= '{ print $2 }'` + SHORT=`sysctl -a 2> /dev/null | egrep "(hw.product|machdep.dmi.system-product)" | head -1 | sed 's/ = /=/' | awk -F= '{ print $2 }'` fi # Check if we catched some string along all tests