diff options
author | Jonathan Bauer | 2013-05-23 13:38:23 +0200 |
---|---|---|
committer | Jonathan Bauer | 2013-05-23 13:38:23 +0200 |
commit | 481ed100289b3435470830fd73d01ea20f506cf2 (patch) | |
tree | 52ed61a8d87802475e53956cfdce5b3011e8335d /helper | |
parent | update to setup script (diff) | |
download | tm-scripts-481ed100289b3435470830fd73d01ea20f506cf2.tar.gz tm-scripts-481ed100289b3435470830fd73d01ea20f506cf2.tar.xz tm-scripts-481ed100289b3435470830fd73d01ea20f506cf2.zip |
fix annoying error message of 'which apt-get' on suse
Diffstat (limited to 'helper')
-rw-r--r-- | helper/fileutil.inc | 4 |
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" |