summaryrefslogtreecommitdiff
path: root/report-installed-packages.in
diff options
context:
space:
mode:
Diffstat (limited to 'report-installed-packages.in')
-rwxr-xr-xreport-installed-packages.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/report-installed-packages.in b/report-installed-packages.in
index 8883f9a..2732476 100755
--- a/report-installed-packages.in
+++ b/report-installed-packages.in
@@ -27,10 +27,12 @@ content=$(
)
content=$(
- ls '/var/cache/pacman/pkg' | \
+ cd '/var/cache/pacman/pkg'
+ ls | \
sed 's|^\(.*\)-|\1 \0|' | \
sort -k1,1 | \
- join -1 1 -2 1 -o 1.2 - <(echo "${content}")
+ join -1 1 -2 1 -o 1.2 - <(echo "${content}") | \
+ xargs -r sha512sum
)
if [ -z "${to}" ] || [ -z "${from}" ]; then
@@ -42,7 +44,7 @@ elif [ -n "${content}" ]; then
"Subject: $(hostname) - report about installed i686 packages" \
"" \
"$(
- echo "${content}" | \
+ printf '%s\n' "${content}" | \
sed 's|^|stabilize: |'
)" | \
sendmailadvanced