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