From d98d3a02a8d65293e01f28b7e722b6c5405ab437 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 16 May 2020 15:20:53 +0300 Subject: [PATCH] kiss: minor cleanup of etcsums --- kiss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index 7ed417d..9dc89f7 100755 --- a/kiss +++ b/kiss @@ -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"