diff --git a/Config/User/user.sh b/Config/User/user.sh index 1125928..8a61ecc 100644 --- a/Config/User/user.sh +++ b/Config/User/user.sh @@ -77,7 +77,7 @@ case $pick in echo "系统内没有该用户" exit fi - sed -i "s/^#\?$user_name.*/d" /etc/sudoers &> /dev/null + sed -i "/^#\?$user_name.*/d" /etc/sudoers &> /dev/null pkill -u $user_name userdel -r $user_name &> /dev/null rm -rf "/home/${user_name}"