From 59b3f3ed30ed34b74121814d425ec0cd0c24ab47 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 16 Aug 2024 20:03:19 -0300 Subject: [PATCH] Remove '_sourcezap' group in 'sourcezap teardown' --- libexec/sourcezap/commands/sourcezap-teardown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libexec/sourcezap/commands/sourcezap-teardown b/libexec/sourcezap/commands/sourcezap-teardown index c1fa03f..1f8fb65 100755 --- a/libexec/sourcezap/commands/sourcezap-teardown +++ b/libexec/sourcezap/commands/sourcezap-teardown @@ -15,8 +15,9 @@ user=_sourcezap ## # main if [ "$(id -u)" = "0" ]; then - pw userdel -n "${user}" - rm -rf /home/"${user}"/ + pw userdel -n "${user}" || true + pw groupdel -n "${user}" || true + rm -rf /home/"${user}"/ || true printok "done" else printerr "you must be root"