From 481ed100289b3435470830fd73d01ea20f506cf2 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 23 May 2013 13:38:23 +0200 Subject: fix annoying error message of 'which apt-get' on suse --- helper/fileutil.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/fileutil.inc b/helper/fileutil.inc index de4bd409..fcb551eb 100644 --- a/helper/fileutil.inc +++ b/helper/fileutil.inc @@ -1,9 +1,9 @@ # one time jobs # determine packet manager: -if [ ! -z "$(which apt-get)" ]; then +if [ ! -z "$(which apt-get 2>/dev/null)" ]; then PACKET_MANAGER="apt" -elif [ ! -z "$(which zypper)" ]; then +elif [ ! -z "$(which zypper 2>/dev/null)" ]; then PACKET_MANAGER="zypper" else perror "Could not determine this platform's packet manager" -- cgit v1.2.3-55-g7522