1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-09-28 12:22:39 -06:00

kiss: Fix broken symlink handling (runit stuff)

This commit is contained in:
Dylan Araps 2020-04-22 17:32:08 +03:00
parent 285b271dee
commit f2f2f643f2
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

5
kiss
View File

@ -846,8 +846,9 @@ pkg_install_files() {
# chown as chown will reset suid/guid when ownership changes.
#
# This only runs on non-directories as we desire the reset
# behavior mentioned above.
[ -d "$line" ] || chmod "$perms" "$line"
# behavior mentioned above. This may fail (broken symlinks)
# and this is fine.
[ -d "$line" ] || chmod "$perms" "$line" 2>/dev/null ||:
printf '%s %s (%s)\e[K\r' "$3" "$i/$man_tot" "$line"
done