From dd37aaba171c207a5e5313e970dc307cc670a413 Mon Sep 17 00:00:00 2001 From: "Michael Richter, Marian Sigler" Date: Mon, 16 Aug 2010 01:54:01 +0200 Subject: [PATCH] little fix --- plugins/other/vpsmem | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/other/vpsmem b/plugins/other/vpsmem index 287623ef..57014783 100755 --- a/plugins/other/vpsmem +++ b/plugins/other/vpsmem @@ -10,13 +10,13 @@ BEANCOUNTERS=/proc/user_beancounters if [ "$1" == "autoconf" ]; then - if [ -e $BEANCOUNTERS ]; then - echo yes - exit 0 - else - echo no - exit 1 - fi + if [ -e $BEANCOUNTERS ]; then + echo yes + exit 0 + else + echo no + exit 1 + fi fi if [ ! -r $BEANCOUNTERS ]; then @@ -49,10 +49,10 @@ if [ "$1" == "config" ]; then limit.draw LINE2 limit.info memory usage limit EOF - exit 0 + exit 0 fi -if [ $# -gt 0 ]; then +if [ -n "$1" ]; then echo "Invalid argument: $1" >&2 exit 1 fi