Skip to content

Commit 58a6627

Browse files
committed
sort entity list again before giving it to comm(1)
Apparently `holo scan` sorts stuff differently than sort(1). In particular, I see that `holo scan --short` on one of my servers lists file:/etc/munin/munin-node.conf file:/etc/munin/munin.conf in that order, but `holo scan --short | sort` puts it the other way around.
1 parent 39a214e commit 58a6627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/distribution-integration/alpm-hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ comm -12 \
66
<(# changed files come from stdin (but without leading slash!)
77
sort | sed 's+^+/+') \
88
<(# enumerate files that are managed by holo-files
9-
holo scan --short | sed -n 's/^file://p') \
9+
holo scan --short | sed -n 's/^file://p' | sort) \
1010
| sed 's/^/file:/' | xargs -r holo apply

0 commit comments

Comments
 (0)