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

kiss: clean up

This commit is contained in:
Dylan Araps 2019-06-26 21:21:42 +03:00
parent d67048d4f8
commit 69d7954106

10
kiss
View File

@ -199,12 +199,10 @@ pkg_install() {
find ./ -mindepth 1 -not -type d | while read -r file; do find ./ -mindepth 1 -not -type d | while read -r file; do
rpath=${file#.} rpath=${file#.}
case $rpath in [ -z "${rpath##/etc/*}" ] && [ -f "$sys_dir${rpath%/*}/${file##*/}" ] &&
/etc/*) [ -f "$sys_dir${rpath%/*}/${file##*/}" ] || mv=1 ;; return
*) mv=1 ;;
esac
[ "$mv" ] && mv "$file" "$sys_dir${rpath%/*}" ;mv= mv "$file" "$sys_dir${rpath%/*}"
done done
"$sys_db/$name/post-install" 2>/dev/null "$sys_db/$name/post-install" 2>/dev/null
@ -233,7 +231,7 @@ pkg_remove() {
# Use the backup of 'rm' to remove 'rmdir' and itself. # Use the backup of 'rm' to remove 'rmdir' and itself.
"$cac_dir/rm" "$cac_dir/rmdir" "$cac_dir/rm" "$cac_dir/rm" "$cac_dir/rmdir" "$cac_dir/rm"
log "Removed ${1:-name}." log "Removed ${1:-$name}."
} }
pkg_updates() { pkg_updates() {