summaryrefslogtreecommitdiffstats
path: root/helper
diff options
context:
space:
mode:
Diffstat (limited to 'helper')
-rw-r--r--helper/fileutil.inc4
1 files 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"