From 40c17ef5a4637a7e489b97136ed669dfbe8524cc Mon Sep 17 00:00:00 2001 From: hezijie Date: Wed, 10 Apr 2024 10:19:43 +0800 Subject: [PATCH] try to fix go-fumpt.sh script --- avm_scripts/go-fumpt.sh | 2 +- avm_scripts_canary/go-fumpt.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/avm_scripts/go-fumpt.sh b/avm_scripts/go-fumpt.sh index 1f101ab..3efa0bd 100644 --- a/avm_scripts/go-fumpt.sh +++ b/avm_scripts/go-fumpt.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash echo "==> Fixing source code with Gofumpt..." set -e -files=$(find . -name '*.go' | grep -v vendor); if [ -n "$files" ]; then echo "skip" | xargs gofumpt -w; fi \ No newline at end of file +find . -name '*.go' | grep -v vendor | xargs gofumpt -w \ No newline at end of file diff --git a/avm_scripts_canary/go-fumpt.sh b/avm_scripts_canary/go-fumpt.sh index 1f101ab..3efa0bd 100644 --- a/avm_scripts_canary/go-fumpt.sh +++ b/avm_scripts_canary/go-fumpt.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash echo "==> Fixing source code with Gofumpt..." set -e -files=$(find . -name '*.go' | grep -v vendor); if [ -n "$files" ]; then echo "skip" | xargs gofumpt -w; fi \ No newline at end of file +find . -name '*.go' | grep -v vendor | xargs gofumpt -w \ No newline at end of file