commit 451aa6c20f0705ffe9b9a831d10b133f8587f93a parent adb11dc9008a4cc9043232de42a15b8456a5a9fb Author: Cem Keylan <cem@ckyln.com> Date: Sun, 3 May 2020 14:35:42 +0300 kiss: check for etc before reporting 'generating etcsums' Diffstat:
M | kiss | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/kiss b/kiss @@ -504,13 +504,14 @@ pkg_manifest() ( ) 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 .. + # Generate checksums for each configuration file in the package's # /etc/ directory for use in "smart" handling of these files. log "$1" "Generating 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 .. find etc -type f | while read -r file; do hashcheck "$file"