X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fscripts%2Ffunctions;h=82554878c2ae6b95955ae4360ccee316b33fbc17;hb=75385100bedf6d457e88bc2bb942a6f0771b0e06;hp=4a24bd57c4da5da1ce569678f5dffe52c6b4e318;hpb=38a4f52169c7f0bff3b9c071f297da3f788ccb63;p=util-vserver.git diff --git a/util-vserver/scripts/functions b/util-vserver/scripts/functions index 4a24bd5..8255487 100644 --- a/util-vserver/scripts/functions +++ b/util-vserver/scripts/functions @@ -1,6 +1,6 @@ # $Id$ --*- sh -*-- -# Copyright (C) 2003 Enrico Scholz +# Copyright (C) 2003,2004,2005,2006 Enrico Scholz # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -96,7 +96,7 @@ function isDirectoryEmpty for i in "$1"/*; do case "$i" in - (lost+found) + ($1/lost+found) test "$ignore_lostfound" || exit 1 ;; (*) echo "$i"; exit 1 @@ -213,7 +213,7 @@ function colpanic if test -n "$_VS_ERRFILE"; then echo "$@" >>"$_VS_ERRFILE" else - colorize echo -n "$@" >&2 + colorize error echo -n "$@" >&2 fi echo