password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit 96836e447afac427a5cdd87534146418146dc8f9
parent 2e53d994cd2c9e870f0c13be4769fd4ef9510aa8
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date:   Sun, 23 Sep 2012 09:26:09 +0200

Fix style.

Diffstat:
Msrc/platform/freebsd.sh | 20+++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/src/platform/freebsd.sh b/src/platform/freebsd.sh @@ -1,18 +1,16 @@ +# Copyright (C) 2012 Jonathan Chu <milki@rescomp.berkeley.edu>. All Rights Reserved. +# This file is licensed under the GPLv2+. Please see COPYING for more information. + tmpdir() { - ramdisk="/var/tmp/password-store.ramdisk" - if [[ -d $ramdisk && -d $ramdisk && -d $ramdisk ]]; then + ramdisk="/var/tmp/password-store.ramdisk" + if [[ -d $ramdisk && -d $ramdisk && -d $ramdisk ]]; then tmp_dir="$(TMPDIR=$ramdisk mktemp -t "$template" -d)" else - yesno "$(cat <<PROMPT -A ramdisk does not exist at - - $ramdisk + yesno "$(echo "A ramdisk does not exist at $ramdisk, which means that it may" + echo "be difficult to entirely erase the temporary non-encrypted" + echo "password file after editing. Are you sure you would like to" + echo -n "continue?")" -which means that it may be difficult to entirely erase -the temporary non-encrypted password file after editing. -Are you sure you would like to continue? -PROMPT -)" tmp_dir="$(mktemp -t "$template" -d)" fi }