document is_blackbox_repo

This commit is contained in:
Dan OBoyle
2015-07-03 17:41:46 -04:00
parent 2b432e1f3a
commit 53c686fc57

View File

@@ -64,7 +64,8 @@ SECRING="${KEYRINGDIR}/secring.gpg"
: "${DECRYPT_UMASK:=0022}" ;
# : ${DECRYPT_UMASK:=o=} ;
# Is this a blackbox repo?
# Checks if $1 is 0 bytes, and if $1/keyrings
# is a directory
function is_blackbox_repo() {
if [[ -n "$1" ]] && [[ -d "$1/keyrings" ]]; then
return 0 # Yep, its a repo