kiss: Skip /etc/

This commit is contained in:
Dylan Araps 2020-04-22 08:48:16 +03:00
parent 776c3f5590
commit 8a49cd6911
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -1013,7 +1013,7 @@ pkg_install() {
while read -r line; do
perms=$(stat -c %a "$tar_dir/$pkg_name/$line")
case $line in
case $line in /etc/*) ;;
*/) [ -d "$line" ] || mkdir -m "$perms" "$line" ;;
*) cp -Pp "$tar_dir/$pkg_name/$line" "${line%/*}" ;;
esac
@ -1066,7 +1066,7 @@ pkg_install() {
while read -r line; do
perms=$(stat -c %a "$tar_dir/$pkg_name/$line")
case $line in
case $line in /etc/*) ;;
*/) [ -d "$line" ] || mkdir -m "$perms" "$line" ;;
*) [ -e "$line" ] || cp -p "$tar_dir/$pkg_name/$line" "${line%/*}"
esac