aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAimilius <emiel.wiedijk01@gmail.com>2017-03-13 19:16:30 +0100
committerAimilius <emiel.wiedijk01@gmail.com>2017-03-13 19:16:30 +0100
commit5487cc1061c4cfd6f260b1c0195a5edb80330313 (patch)
tree2507bf4b80e0df4bc1dbd94021a90d79d255f016
parent022eb4f5b6e06af185b3cc84db722e6023a9d13a (diff)
downloadpass-otp-5487cc1061c4cfd6f260b1c0195a5edb80330313.tar.gz
pass-otp-5487cc1061c4cfd6f260b1c0195a5edb80330313.zip
Initialize $INNER_GIT_DIR
-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")"