diff --git a/src/commands/git_secret_reveal.sh b/src/commands/git_secret_reveal.sh index 01d1ac29..cf9fa328 100644 --- a/src/commands/git_secret_reveal.sh +++ b/src/commands/git_secret_reveal.sh @@ -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 diff --git a/tests/test_hide.bats b/tests/test_hide.bats index cdf7f6af..002a3644 100644 --- a/tests/test_hide.bats +++ b/tests/test_hide.bats @@ -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" ] diff --git a/tests/test_reveal.bats b/tests/test_reveal.bats index 0e00d573..5f8ac672 100644 --- a/tests/test_reveal.bats +++ b/tests/test_reveal.bats @@ -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" ]