summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-09-23 09:26:09 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-09-23 09:26:09 +0200
commit96836e447afac427a5cdd87534146418146dc8f9 (patch)
treeb9714fcad235da45e6fbded847deb1d40ccded8e /src
parent2e53d994cd2c9e870f0c13be4769fd4ef9510aa8 (diff)
downloadpass-96836e447afac427a5cdd87534146418146dc8f9.tar.gz
pass-96836e447afac427a5cdd87534146418146dc8f9.tar.bz2
pass-96836e447afac427a5cdd87534146418146dc8f9.zip
Fix style.
Diffstat (limited to '')
-rw-r--r--src/platform/freebsd.sh20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/platform/freebsd.sh b/src/platform/freebsd.sh
index 3900f10..ff41379 100644
--- 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
}
1.1.1Jason A. Donenfeld1-1/+1 2012-09-06Use --noreport instead of head -n -2 for tree so that it works on mac.Jason A. Donenfeld1-1/+1 2012-09-05Be sure to explicitly state that install is a phony target.Jason A. Donenfeld1-0/+2 2012-09-05Bump debian version horribly.1.1Jason A. Donenfeld2-2/+2 2012-09-04No echo mode.Jason A. Donenfeld2-16/+42 2012-09-04Properly quote the path too.Jason A. Donenfeld1-1/+1 2012-09-04Allow passwords having spaces to go unbroken to the clipboard.Bernardo Freitas Paulo da Costa1-1/+1 2012-09-04Separate out the massive git example.Jason A. Donenfeld1-10/+14 2012-09-04Prepare for debianification.1.0Jason A. Donenfeld9-4/+60 2012-09-03Fix readme typo.Jason A. Donenfeld1-1/+1 2012-09-03Show program name properly in error message.Jason A. Donenfeld1-1/+1 2012-09-03Move examples into manpage.Jason A. Donenfeld4-93/+224 2012-09-03Make into a real project.Jason A. Donenfeld8-5/+173 2012-09-03Support pass gitJason A. Donenfeld2-1/+15 2012-08-31Add remove synonyms.Jason A. Donenfeld1-2/+2 2012-08-31Use basename in usage.Jason A. Donenfeld1-2/+1 2012-08-19now using gpg_id as a varMatthew Ramirez1-2/+2 2012-08-07Forty five seconds.Jason A. Donenfeld1-1/+1 2012-08-06Deal with klipper and new lines.Jason A. Donenfeld1-3/+19 2012-08-06Update examples.Jason A. Donenfeld1-7/+7 2012-08-06Update readme.Jason A. Donenfeld1-11/+13 2012-08-06Be slicker and more like git.Jason A. Donenfeld1-114/+173