committing changes in /etc made by "-bash"

Package changes:
This commit is contained in:
2022-03-18 01:17:21 +02:00
parent 325ac7b596
commit 4644686801
12 changed files with 24 additions and 14 deletions

View File

@@ -16,13 +16,13 @@ filter_ignore() {
listfile="$( mktemp -t etckeeper-$VCS.XXXXXXXXXX )"
case "$VCS" in
darcs)
grep -v '^[[:space:]]*\(#\|$\)' "$ignorefile" > "$listfile" || true
grep -Evf "$listfile"
LC_CTYPE=C grep -v '^[[:space:]]*\(#\|$\)' "$ignorefile" > "$listfile" || true
LC_CTYPE=C grep -Evf "$listfile"
;;
git)
(git ls-files -oi --exclude-standard; git ls-files -oi --exclude-standard --directory) | sort | uniq > "$listfile" || true
if [ -s "$listfile" ]; then
sed 's/^\.\///' | grep -xFvf "$listfile"
sed 's/^\.\///' | LC_CTYPE=C grep -xFvf "$listfile"
else
cat -
fi
@@ -124,7 +124,7 @@ maybe_chmod_chown() {
egid=$(id -g)
q="'"
while read x; do
stat=$(stat -c "%f:%u:%g:%a:%U:%G" $x)
stat=$(stat -c "%f:%u:%g:%a:%U:%G" "$x")
IFS=":" read mode uid gid perm uname gname <<EOF
$stat
EOF