From: Silvio Rhatto Date: Sat, 20 Feb 2021 12:43:34 +0000 (-0300) Subject: Feat: tombopen: check for git-annex X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=70ad3f0be888c8d15f1f4aca899b851f5203cc3b;p=scripts.git Feat: tombopen: check for git-annex --- diff --git a/tombopen b/tombopen index 33aa1e7..9cd492d 100755 --- a/tombopen +++ b/tombopen @@ -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