summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalrmstaleaccounts16
1 files changed, 8 insertions, 8 deletions
diff --git a/localrmstaleaccounts b/localrmstaleaccounts
index b185cfc..b6e9a05 100755
--- a/localrmstaleaccounts
+++ b/localrmstaleaccounts
@@ -2,22 +2,22 @@
set -e
-exit1() (
+exit1() {
echo >&2 "ERROR: $1"
exit 1
-)
+}
-warn() (
+warn() {
echo >&2 "WARNING: $1"
-)
+}
-info() (
+info() {
echo >&2 "INFO: $1"
-)
+}
-remove_account() (
+remove_account() {
localrmaccount "$1"
-)
+}
for user in $@; do
home=$(getent passwd "$user" | cut -d: -f6)