From 17ce90125b6acebde772db6b8afe45b2d74ff5e5 Mon Sep 17 00:00:00 2001 From: Kamil Wilczek Date: Wed, 3 Oct 2018 15:09:11 +0200 Subject: [PATCH] .blackbox is now the default config directory for new repos. (#272) - _blackbox_common.sh sets the default Blackbox directory for the new repositories using the first entry of the BLACKBOX_CANDIDATES array. This small change sets the first entry to the new .blackbox dir (instead of the keyring/live) --- bin/_blackbox_common.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/_blackbox_common.sh b/bin/_blackbox_common.sh index 1597495..de5e1ab 100755 --- a/bin/_blackbox_common.sh +++ b/bin/_blackbox_common.sh @@ -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":