aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xotp.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/otp.bash b/otp.bash
index 00f57e1..ef167dd 100755
--- a/otp.bash
+++ b/otp.bash
@@ -45,6 +45,9 @@ otp_insert() {
[[ $force -eq 0 && -e $passfile ]] && yesno "An entry already exists for $path. Overwrite it?"
+ local passfile="$PREFIX/$path.gpg"
+ set_git "$passfile"
+
mkdir -p -v "$PREFIX/$(dirname "$path")"
set_gpg_recipients "$(dirname "$path")"