This commit is contained in:
Tom Limoncelli
2018-12-09 07:30:49 -05:00
11 changed files with 240 additions and 89 deletions

View File

@@ -16,10 +16,13 @@ source "${0%/*}"/_stack_lib.sh
: "${BLACKBOX_HOME:="$(cd "${0%/*}" ; pwd)"}" ;
# What are the candidates for the blackbox data directory?
#
# The order of candidates matter. The first entry of the array
# sets the default Blackbox directory for all new repositories.
declare -a BLACKBOXDATA_CANDIDATES
BLACKBOXDATA_CANDIDATES=(
'keyrings/live'
'.blackbox'
'keyrings/live'
)
# If $EDITOR is not set, set it to "vi":
@@ -152,7 +155,7 @@ function fail_if_not_on_cryptlist() {
if ! is_on_cryptlist "$name" ; then
echo "ERROR: $name not found in $BB_FILES" >&2
echo "PWD=$(/bin/pwd)" >&2
echo "PWD=$(/usr/bin/env pwd)" >&2
echo 'Exiting...' >&2
exit 1
fi