1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 00:20:05 -07:00

kiss: Fix /etc exclusion.

This commit is contained in:
Dylan Araps 2019-06-26 19:43:14 +03:00
parent fa40f51a49
commit 2560ba5128

4
kiss
View File

@ -200,7 +200,7 @@ pkg_install() {
rpath=${file#.} rpath=${file#.}
case $rpath in case $rpath in
/etc/*) [ -f "$sys_dir${rpath%/*}" ] || mv=1 ;; /etc/*) [ -f "$sys_dir${rpath%/*}/${file##*/}" ] || mv=1 ;;
*) mv=1 ;; *) mv=1 ;;
esac esac
@ -221,7 +221,7 @@ pkg_remove() {
cp "$(command -v rmdir)" "$cac_dir" cp "$(command -v rmdir)" "$cac_dir"
while read -r file; do while read -r file; do
[ "${file%/*}" = /etc ] && continue [ "${file##/etc/*}" ] || continue
if [ -d "$sys_dir$file" ]; then if [ -d "$sys_dir$file" ]; then
"$cac_dir/rmdir" "$sys_dir$file" 2>/dev/null || continue "$cac_dir/rmdir" "$sys_dir$file" 2>/dev/null || continue