kiss: clean up
This commit is contained in:
parent
ac3faed601
commit
6bf3d1e994
5
kiss
5
kiss
|
@ -612,7 +612,7 @@ pkg_remove() {
|
||||||
if [ -d "$KISS_ROOT/$file" ]; then
|
if [ -d "$KISS_ROOT/$file" ]; then
|
||||||
rmdir "$KISS_ROOT/$file" 2>/dev/null || continue
|
rmdir "$KISS_ROOT/$file" 2>/dev/null || continue
|
||||||
else
|
else
|
||||||
rm -f -- "$KISS_ROOT/$file"
|
rm -f "$KISS_ROOT/$file"
|
||||||
fi
|
fi
|
||||||
done < "$sys_db/$1/manifest"
|
done < "$sys_db/$1/manifest"
|
||||||
|
|
||||||
|
@ -727,8 +727,7 @@ pkg_install() {
|
||||||
unlink "$file" ||:
|
unlink "$file" ||:
|
||||||
|
|
||||||
# Skip directory symlinks.
|
# Skip directory symlinks.
|
||||||
elif [ -L "$file" ] && [ -d "$file" ]; then
|
elif [ -L "$file" ] && [ -d "$file" ]; then :
|
||||||
:
|
|
||||||
|
|
||||||
# Remove directories if empty.
|
# Remove directories if empty.
|
||||||
elif [ -d "$file" ]; then
|
elif [ -d "$file" ]; then
|
||||||
|
|
Loading…
Reference in New Issue