mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-04 14:05:41 -07:00
kiss: Simplify pkg_remove_files()
This commit is contained in:
parent
23a0e14aaa
commit
f1c8fb5b1b
5
kiss
5
kiss
@ -992,11 +992,8 @@ pkg_remove_files() {
|
||||
elif [ -h "$file" ] && [ ! -d "$file" ]; then
|
||||
rm -f "$file"
|
||||
|
||||
# Skip directory symlinks.
|
||||
elif [ -h "$file" ] && [ -d "$file" ]; then :
|
||||
|
||||
# Remove directories if empty.
|
||||
elif [ -d "$file" ]; then
|
||||
elif [ -d "$file" ] && [ ! -h "$file" ]; then
|
||||
rmdir "$file" 2>/dev/null ||:
|
||||
fi
|
||||
done ||:
|
||||
|
Loading…
Reference in New Issue
Block a user