From d73e1081be8877d949526549c2169e50b349a2d2 Mon Sep 17 00:00:00 2001 From: joshr Date: Sun, 22 Jul 2018 22:43:06 -0400 Subject: [PATCH] cleanup --- src/commands/git_secret_reveal.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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))