Improve grep in ostree config-diff to not choke on spaces in filenames
This commit is contained in:
parent
b54710a72e
commit
b37f882d7d
@ -39,8 +39,7 @@ DIRS+=("{{ item }}")
|
||||
if command -v ostree > /dev/null 2>&1; then
|
||||
for file in $(
|
||||
ostree admin config-diff 2>/dev/null | \
|
||||
grep -e '^[A|M]' | \
|
||||
awk '{print $2}'
|
||||
grep -oP '^[A|M]\s*\K.*'
|
||||
); do
|
||||
DIRS+=("/etc/$file")
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user