#!/bin/bash
+# $Id$
#
# Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
#
Return values:
0 ... no errors
1 ... configuration error
- 2 ... some files where changes but there occured errors on other ones
+ 2 ... some files were changed but errors occured on other ones
3 ... operation failed on every file
Report bugs to <$PACKAGE_BUGREPORT>."
}
-while test "$1"; do
+while test -n "$1"; do
case "$1" in
--help) showHelp;;
--version) showVersion;;
$_SETATTR -x "${params[@]}" "$@" && passed=1 || ok=
done <"$UNHIDEFILE"
-test "$ok" && exit 0 || \
-test "$passed" && exit 2 || \
+test -n "$ok" && exit 0 || \
+test -n "$passed" && exit 2 || \
exit 3