summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalrmaccount2
1 files changed, 1 insertions, 1 deletions
diff --git a/localrmaccount b/localrmaccount
index f77167a..ac0abf8 100755
--- a/localrmaccount
+++ b/localrmaccount
@@ -6,5 +6,5 @@ u="$1"; shift
p=/var/backups/users-dropped/
getent passwd "$u" > "$p/$u.getent"
getent group "$u" >> "$p/$u.getent"
-[ -z "$2" ] || echo "$2" >> "$p/$u.getent"
+[ -z "$1" ] || echo "$1" >> "$p/$u.getent"
deluser --remove-home --backup --backup-to "$p" "$u"