aboutsummaryrefslogtreecommitdiff
path: root/tombopen
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2021-02-20 09:43:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2021-02-20 09:43:34 -0300
commit70ad3f0be888c8d15f1f4aca899b851f5203cc3b (patch)
tree9712122ea52363e63b9d11c915c5529afaaddff2 /tombopen
parent45bce1a2158a0a9c82bca06aa364adda03e07e0c (diff)
downloadscripts-70ad3f0be888c8d15f1f4aca899b851f5203cc3b.tar.gz
scripts-70ad3f0be888c8d15f1f4aca899b851f5203cc3b.tar.bz2
Feat: tombopen: check for git-annex
Diffstat (limited to 'tombopen')
-rwxr-xr-xtombopen5
1 files changed, 5 insertions, 0 deletions
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