A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
perf: update check-asf-header.sh script to support Podman
Sonui7d5bfaa3fbbf
diff --git a/script/check-asf-header.sh b/script/check-asf-header.shindex ff765eab..808efa10 100755--- a/script/check-asf-header.sh+++ b/script/check-asf-header.sh@@ -16,5 +16,16 @@# specific language governing permissions and limitations# under the License.-docker run -it --rm -v $(pwd):/github/workspace ghcr.io/korandoru/hawkeye-native format+# check if docker or podman is installed+if command -v docker >/dev/null 2>&1; then+ CONTAINER_RUNTIME="docker"+elif command -v podman >/dev/null 2>&1; then+ CONTAINER_RUNTIME="podman"+else+ echo "Neither Docker nor Podman is installed. Please install either Docker or Podman."+ exit 1+fi++$CONTAINER_RUNTIME run -it --rm -v "$(pwd)":/github/workspace ghcr.io/korandoru/hawkeye-native format+gofmt -w -l .