kiss: clean up

This commit is contained in:
Dylan Araps 2019-09-14 00:28:30 +03:00
parent ac3faed601
commit 6bf3d1e994
1 changed files with 2 additions and 3 deletions

5
kiss
View File

@ -612,7 +612,7 @@ pkg_remove() {
if [ -d "$KISS_ROOT/$file" ]; then
rmdir "$KISS_ROOT/$file" 2>/dev/null || continue
else
rm -f -- "$KISS_ROOT/$file"
rm -f "$KISS_ROOT/$file"
fi
done < "$sys_db/$1/manifest"
@ -727,8 +727,7 @@ pkg_install() {
unlink "$file" ||:
# Skip directory symlinks.
elif [ -L "$file" ] && [ -d "$file" ]; then
:
elif [ -L "$file" ] && [ -d "$file" ]; then :
# Remove directories if empty.
elif [ -d "$file" ]; then