From 5487cc1061c4cfd6f260b1c0195a5edb80330313 Mon Sep 17 00:00:00 2001 From: Aimilius Date: Mon, 13 Mar 2017 19:16:30 +0100 Subject: Initialize $INNER_GIT_DIR --- otp.bash | 3 +++ 1 file changed, 3 insertions(+) (limited to 'otp.bash') 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")" -- cgit v1.2.3