diff --git a/src/commands/git_secret_reveal.sh b/src/commands/git_secret_reveal.sh index f2ad57be..c05a3079 100644 --- a/src/commands/git_secret_reveal.sh +++ b/src/commands/git_secret_reveal.sh @@ -50,14 +50,10 @@ function reveal { fi if [[ "$chmod" == 1 ]]; then - local perms - perms=$($SECRETS_OCTAL_PERMS_COMMAND "$filename") + local perms + perms=$($SECRETS_OCTAL_PERMS_COMMAND "$filename") - echo "# octal_perms_command: $SECRETS_OCTAL_PERMS_COMMAND" >&3 - echo "# filename is '$filename', path is '$path'" >&3 - echo "# NOT running: chmod $perms $path" >&3 - - #chmod "$perms" "$path" + chmod $perms "$path" fi counter=$((counter+1))