mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 08:30:05 -07:00
kiss: Remove unneeded code
This commit is contained in:
parent
cad980317e
commit
efad712333
5
kiss
5
kiss
@ -831,11 +831,6 @@ pkg_remove() {
|
||||
# Disable globbing.
|
||||
set -f
|
||||
|
||||
# Ensure that the user leaves their machine in a working state by
|
||||
# refusing to remove the package which providees 'su'.
|
||||
grep -q "^$(command -v su)$" "$sys_db/$1/manifest" &&
|
||||
die "$1" "Removing su will break the system."
|
||||
|
||||
# Block being able to abort the script with 'Ctrl+C' during removal.
|
||||
# Removes all risk of the user aborting a package removal leaving
|
||||
# an incomplete package installed.
|
||||
|
Loading…
Reference in New Issue
Block a user