From 53c686fc57db3cdc35b91ebbb7870b1d7385bb28 Mon Sep 17 00:00:00 2001 From: Dan OBoyle Date: Fri, 3 Jul 2015 17:41:46 -0400 Subject: [PATCH] document is_blackbox_repo --- bin/_blackbox_common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/_blackbox_common.sh b/bin/_blackbox_common.sh index dfc6076..372a3b1 100755 --- a/bin/_blackbox_common.sh +++ b/bin/_blackbox_common.sh @@ -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