Skip to content
Snippets Groups Projects
Verified Commit f0d2775f authored by Dominik George's avatar Dominik George
Browse files

Silence diff.

parent 5a426408
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ cp "$1" "$1.real_orig"
${EDITOR_ORIG:-editor} "$1"
# Update last_changed to today or append, only if changed
if ! diff "$1" "$1.real_orig"; then
if ! diff "$1" "$1.real_orig" &>/dev/null; then
lc_line="last_changed: $(date +'%Y-%m-%d')"
sed -i '/^last_changed:/{h;s/.*/'"$lc_line"'/};${x;/^$/{s//'"$lc_line"'/;H};x}' "$1"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment