diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-12-27 00:01:48 +0000 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-12-27 00:01:48 +0000 |
commit | 3b9bacad7b208963a282a9a944404e46b23e9f65 (patch) | |
tree | dc674bb0f181401b1afc1f2d902ebe7e1c0b8383 /.mrconfig.in | |
parent | d325a841af3438290bcc58ecf169af5eae44f7bd (diff) | |
download | dotfiles-3b9bacad7b208963a282a9a944404e46b23e9f65.tar.gz |
use sed rather than echo to edit .git/info/attributes
Diffstat (limited to '.mrconfig.in')
-rw-r--r-- | .mrconfig.in | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.mrconfig.in b/.mrconfig.in index 42e810f9..b3afda75 100644 --- a/.mrconfig.in +++ b/.mrconfig.in @@ -250,10 +250,11 @@ post_checkout = git annex enableremote cloud git annex group . backup - # `git annex init` adds an additional line to .git/info/attributes - # which disables the smudge filter for dotfiles, but this repo - # needs the smudge filter for dotfiles, so override it - echo "* filter=annex" >.git/info/attributes + # `git annex init` (until v8) adds an additional line to + # .git/info/attributes which disables the smudge filter for + # dotfiles, but this repo needs the smudge filter for dotfiles, so + # override it + sed -i'' .git/info/attributes -e '/^.* !filter$/d' fixups = chmod 600 .passwddb.pet \ |