kiss: minor cleanup of etcsums

This commit is contained in:
Dylan Araps 2020-05-16 15:20:53 +03:00
parent cc0ab4d072
commit d98d3a02a8
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -581,7 +581,9 @@ pkg_etcsums() (
# This function runs as a sub-shell to avoid having to 'cd' back to the
# prior directory before being able to continue.
cd "$pkg_dir/$1/etc" 2>/dev/null || return 0; cd ..
[ -d "$pkg_dir/$1/etc" ] || return 0
cd "$pkg_dir/$1"
find etc -type f | while read -r line; do
sh256 "$line"