forked from kiss-community/kiss
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.
|
# Disable globbing.
|
||||||
set -f
|
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.
|
# Block being able to abort the script with 'Ctrl+C' during removal.
|
||||||
# Removes all risk of the user aborting a package removal leaving
|
# Removes all risk of the user aborting a package removal leaving
|
||||||
# an incomplete package installed.
|
# an incomplete package installed.
|
||||||
|
Loading…
Reference in New Issue
Block a user