aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-03 11:35:41 +0000
committermerakor <cem@ckyln.com>2020-05-03 11:35:41 +0000
commit80291e05cc38c1d7f0013e9a725849e0d2cbfc35 (patch)
treed8f7eede0d15f9a80cbbcf487c5f0455b04be49e /kiss
parent8e30af0aa722cbd5ca0178189edc5dae538c62e4 (diff)
downloadcpt-80291e05cc38c1d7f0013e9a725849e0d2cbfc35.tar.gz
kiss: check for etc before reporting 'generating etcsums'
FossilOrigin-Name: e419c54e1433f540229a36a7511e12e4015c6a1a55462d8408ece6141df809c3
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss7
1 files changed, 4 insertions, 3 deletions
diff --git a/kiss b/kiss
index 8ba9e00..844ad9a 100755
--- 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"