1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 16:40:07 -07:00

kiss: Remove unneeded code

This commit is contained in:
Dylan Araps 2020-01-30 11:09:26 +02:00
parent cad980317e
commit efad712333
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

5
kiss
View File

@ -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.