diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-02-20 09:43:34 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-02-20 09:43:34 -0300 |
commit | 70ad3f0be888c8d15f1f4aca899b851f5203cc3b (patch) | |
tree | 9712122ea52363e63b9d11c915c5529afaaddff2 /tombopen | |
parent | 45bce1a2158a0a9c82bca06aa364adda03e07e0c (diff) | |
download | scripts-70ad3f0be888c8d15f1f4aca899b851f5203cc3b.tar.gz scripts-70ad3f0be888c8d15f1f4aca899b851f5203cc3b.tar.bz2 |
Feat: tombopen: check for git-annex
Diffstat (limited to 'tombopen')
-rwxr-xr-x | tombopen | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -22,5 +22,10 @@ elif [ ! -e "$KEYS/$TOMB.tomb.key" ]; then exit 1 fi +# Unnanex +if [ -d "$TOMBS/.git/annex" ] && [ -h "$TOMBS/$TOMB.tomb" ]; then + ( cd $TOMBS && git annex unlock $TOMB.tomb ) +fi + # Dispatch tomb open $TOMBS/$TOMB.tomb -k $KEYS/$TOMB.tomb.key |