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(+) 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 From 6201daacf176008e135a7965d9aef9d4d4f8a0b8 Mon Sep 17 00:00:00 2001 From: Aimilius Date: Thu, 16 Mar 2017 21:16:42 +0100 Subject: Don't initialize passfile twice --- otp.bash | 1 - 1 file changed, 1 deletion(-) diff --git a/otp.bash b/otp.bash index ef167dd..85e167c 100755 --- a/otp.bash +++ b/otp.bash @@ -45,7 +45,6 @@ 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")" -- cgit v1.2.3