mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-24 08:00:05 -07:00
kiss: Make pkg_remove_files a little clearer
This commit is contained in:
parent
d883c42498
commit
380da113eb
8
kiss
8
kiss
@ -952,12 +952,12 @@ pkg_remove_files() {
|
||||
# Remove a file list from the system. This function runs during package
|
||||
# installation and package removal. Combining the removals in these two
|
||||
# functions allows us to stop duplicating code.
|
||||
while read -r file; do file=$KISS_ROOT/$file
|
||||
# Skip files in /etc/.
|
||||
if [ -z "${file##"$KISS_ROOT/etc/"*}" ]; then :
|
||||
while read -r file; do
|
||||
case $file in /etc/*) continue; esac
|
||||
file=$KISS_ROOT/$file
|
||||
|
||||
# Remove files.
|
||||
elif [ -f "$file" ] && [ ! -h "$file" ]; then
|
||||
if [ -f "$file" ] && [ ! -h "$file" ]; then
|
||||
rm -f "$file"
|
||||
|
||||
# Remove file symlinks.
|
||||
|
Loading…
Reference in New Issue
Block a user