aboutsummaryrefslogtreecommitdiff
path: root/tombopen
diff options
context:
space:
mode:
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