aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-08-17 16:37:09 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-08-17 16:37:09 +0000
commitf54bc8c7a7ddfec01b518a95f4caf61f3be9072b (patch)
tree1714cc51d8b6d57fe5a60cb4eccfc50340b188de
parent2b3f02e56f3031625531d638c0c704529e9939fc (diff)
downloadpaludis-f54bc8c7a7ddfec01b518a95f4caf61f3be9072b.tar.gz
paludis-f54bc8c7a7ddfec01b518a95f4caf61f3be9072b.tar.xz
Tweak config updates message
-rwxr-xr-xhooks/find_config_updates.bash5
1 files changed, 3 insertions, 2 deletions
diff --git a/hooks/find_config_updates.bash b/hooks/find_config_updates.bash
index fb2ff72..9b68365 100755
--- a/hooks/find_config_updates.bash
+++ b/hooks/find_config_updates.bash
@@ -26,8 +26,9 @@ einfo "Searching for configuration files requiring action..."
dir_count=0
for dir in /etc ${CONFIG_PROTECT} ; do
[[ -d "${ROOT%/}/${dir}" ]] || continue
- if [[ -n $(find "${ROOT%/}/${dir}" -iname '._cfg????_*' ) ]] ; then
- einfo "Found files in ${ROOT%/}/${dir}"
+ c=$(find "${ROOT%/}/${dir}" -iname '._cfg????_*' | wc -l )
+ if [[ ${c} -gt 0 ]] ; then
+ einfo "Found ${c} files in ${ROOT%%+(/)}/${dir}"
dir_count=$((dir_count + 1))
fi
done