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"