remove debug code

pull/245/head
joshr 6 years ago
parent 41fdf8b2e4
commit 5d5392232b

@ -54,11 +54,6 @@ function reveal {
secret_file=$(_get_encrypted_filename "$path")
local perms
perms=$($SECRETS_OCTAL_PERMS_COMMAND "$secret_file")
echo "# octal_perms_command: $SECRETS_OCTAL_PERMS_COMMAND" >&3
echo "# filename is '$filename', path is '$path'" >&3
echo "# running: chmod '$perms' '$path'" >&3
chmod "$perms" "$path"
fi

@ -57,7 +57,9 @@ function teardown {
local file_perm
secret_perm=$(ls -l "$encrypted_file" | cut -d' ' -f1)
file_perm=$(ls -l "$FILE_TO_HIDE" | cut -d' ' -f1)
echo "# secret_perm: $secret_perm, file_perm: $file_perm" >&3
# text sent to file descriptor 3 is 'diagnostic' (debug) output for devs
#echo "# secret_perm: $secret_perm, file_perm: $file_perm" >&3
[ "$secret_perm" = "$file_perm" ]

@ -71,7 +71,9 @@ function teardown {
local file_perm
secret_perm=$(ls -l "$FILE_TO_HIDE".secret | cut -d' ' -f1)
file_perm=$(ls -l "$FILE_TO_HIDE" | cut -d' ' -f1)
echo "# secret_perm: $secret_perm, file_perm: $file_perm" >&3
# text sent to file descriptor 3 is 'diagnostic' (debug) output for devs
#echo "# secret_perm: $secret_perm, file_perm: $file_perm" >&3
[ "$secret_perm" = "$file_perm" ]

Loading…
Cancel
Save