summaryrefslogtreecommitdiff
path: root/src/platform/freebsd.sh
blob: b3a4136f2b2b89b064d51c3851fda0f22a22b838 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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
		tmp_dir="$(TMPDIR=$ramdisk mktemp -t "$template" -d)"
	else
		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?")"

		tmp_dir="$(mktemp -t "$template" -d)"
	fi
}

GETOPT="/usr/local/bin/getopt"
SHRED="rm -P -f"
>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