diff --git a/bin/_blackbox_common.sh b/bin/_blackbox_common.sh index 9915c8d..867442b 100755 --- a/bin/_blackbox_common.sh +++ b/bin/_blackbox_common.sh @@ -61,7 +61,8 @@ BB_FILES_FILE="blackbox-files.txt" BB_FILES="${KEYRINGDIR}/${BB_FILES_FILE}" SECRING="${KEYRINGDIR}/secring.gpg" PUBRING="${KEYRINGDIR}/pubring.gpg" -: ${DECRYPT_UMASK:=o=} ; +: ${DECRYPT_UMASK:=0022} ; +# : ${DECRYPT_UMASK:=o=} ; # Return error if not on cryptlist. function is_on_cryptlist() { diff --git a/bin/blackbox_list_files b/bin/blackbox_list_files new file mode 100755 index 0000000..c7404e1 --- /dev/null +++ b/bin/blackbox_list_files @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# +# blackbox_list_files.sh -- List files that black box is tracking +# +set -e +blackbox_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) +source ${blackbox_home}/_blackbox_common.sh + +echo -e "\nFiles currently managed my Blackbox:\n" +cat $BB_FILES + +echo