Remove debug spew and undefined variable

This commit is contained in:
Michael Wolf
2023-09-30 17:49:00 -06:00
parent 7866b6de55
commit 50cbaa0454

View File

@@ -13,10 +13,7 @@ file="$1"
pushd "$(dirname "$file")" 2>&1 pushd "$(dirname "$file")" 2>&1
wrflog hello
if [[ "$WOULD_REFORMAT" = "would_reformat" ]]; then if [[ "$WOULD_REFORMAT" = "would_reformat" ]]; then
success_retval=0
would_reformat_retval=1 would_reformat_retval=1
syntax_error_retval=2 syntax_error_retval=2
@@ -25,8 +22,6 @@ if [[ "$WOULD_REFORMAT" = "would_reformat" ]]; then
exitval="$?" exitval="$?"
set -e set -e
wrflog out: "$out"
if [[ "$exitval" = "$syntax_error_retval" ]]; then if [[ "$exitval" = "$syntax_error_retval" ]]; then
retval="$exitval" retval="$exitval"
elif [[ "$out" = "$file" ]]; then elif [[ "$out" = "$file" ]]; then