From ae841d11ed7ae983340e2e1b0f27153380a388f1 Mon Sep 17 00:00:00 2001 From: zouxxyy Date: Wed, 18 Mar 2026 12:29:05 +0800 Subject: [PATCH 1/2] [SETUP] Use #!/usr/bin/env bash instead of #!/bin/bash for portability --- .github/workflows/util/install-flink-resources.sh | 2 +- .github/workflows/util/install-resources.sh | 2 +- dev/bloop-test.sh | 2 +- dev/build-arrow.sh | 2 +- dev/build-helper-functions.sh | 2 +- dev/build-libhdfs3.sh | 2 +- dev/build-thirdparty.sh | 2 +- dev/buildbundle-veloxbe.sh | 2 +- dev/builddep-veloxbe-inc.sh | 2 +- dev/builddeps-veloxbe.sh | 2 +- dev/ci-velox-buildshared-centos-8.sh | 2 +- dev/ci-velox-buildstatic-centos-7-enhanced-features.sh | 2 +- dev/ci-velox-buildstatic-centos-7.sh | 2 +- dev/ci-velox-buildstatic-centos-8.sh | 2 +- dev/ci-velox-buildstatic-centos-9.sh | 2 +- dev/format-cpp-code.sh | 2 +- dev/format-scala-code.sh | 2 +- dev/gen-all-config-docs.sh | 2 +- dev/gluten-build-info.sh | 2 +- dev/info.sh | 2 +- dev/package-vcpkg.sh | 2 +- dev/package.sh | 2 +- dev/release/build-release.sh | 2 +- dev/release/bump-version.sh | 2 +- dev/release/package-release.sh | 2 +- dev/run-scala-test.sh | 2 +- dev/setup-qat-ubuntu.sh | 2 +- dev/start-cudf.sh | 2 +- ep/build-clickhouse/src/build-clickhouse.sh | 2 +- ep/build-clickhouse/src/install-ubuntu.sh | 2 +- ep/build-clickhouse/src/package.sh | 2 +- ep/build-clickhouse/src/resources/bin/check-env.sh | 2 +- ep/build-clickhouse/src/resources/bin/gluten.sh | 2 +- ep/build-velox/src/build-velox.sh | 2 +- ep/build-velox/src/get-velox.sh | 2 +- ep/build-velox/src/setup-centos7.sh | 2 +- ep/build-velox/src/setup-centos8.sh | 2 +- ep/build-velox/src/setup-openeuler24.sh | 2 +- ep/build-velox/src/setup-rhel.sh | 2 +- tools/gluten-it/sbin/gluten-it.sh | 2 +- tools/gluten-te/centos/build.sh | 2 +- tools/gluten-te/centos/buildenv.sh | 2 +- tools/gluten-te/centos/cbash-build.sh | 2 +- tools/gluten-te/centos/cbash-mount.sh | 2 +- tools/gluten-te/centos/centos-7-deps.sh | 2 +- tools/gluten-te/centos/centos-8-deps.sh | 2 +- .../examples/buildhere-veloxbe-portable-libs/run-default.sh | 2 +- .../centos/examples/buildhere-veloxbe-portable-libs/run.sh | 2 +- .../examples/buildhere-veloxbe-portable-libs/scripts/all.sh | 2 +- tools/gluten-te/centos/gha/gha-checkout/checkout.sh | 2 +- tools/gluten-te/centos/gha/gha-checkout/clean.sh | 2 +- tools/gluten-te/centos/gha/gha-checkout/cp.sh | 2 +- tools/gluten-te/centos/gha/gha-checkout/exec.sh | 2 +- tools/gluten-te/centos/gha/gha-checkout/scripts/init.sh | 2 +- tools/gluten-te/centos/shared.sh | 2 +- tools/gluten-te/ubuntu/build.sh | 2 +- tools/gluten-te/ubuntu/buildenv.sh | 2 +- tools/gluten-te/ubuntu/cbash-build.sh | 2 +- tools/gluten-te/ubuntu/cbash-mount.sh | 2 +- tools/gluten-te/ubuntu/examples/buildhere-veloxbe-dev/run.sh | 2 +- .../ubuntu/examples/buildhere-veloxbe-dev/scripts/all.sh | 2 +- .../examples/buildhere-veloxbe-portable-libs/run-default.sh | 2 +- .../ubuntu/examples/buildhere-veloxbe-portable-libs/run.sh | 2 +- .../examples/buildhere-veloxbe-portable-libs/scripts/all.sh | 2 +- tools/gluten-te/ubuntu/examples/buildhere-veloxbe/run.sh | 2 +- tools/gluten-te/ubuntu/gha/gha-checkout/checkout.sh | 2 +- tools/gluten-te/ubuntu/gha/gha-checkout/clean.sh | 2 +- tools/gluten-te/ubuntu/gha/gha-checkout/cp.sh | 2 +- tools/gluten-te/ubuntu/gha/gha-checkout/exec.sh | 2 +- tools/gluten-te/ubuntu/gha/gha-checkout/scripts/init.sh | 2 +- tools/gluten-te/ubuntu/scripts/cmd.sh | 2 +- tools/gluten-te/ubuntu/scripts/set-login-env.sh | 2 +- tools/gluten-te/ubuntu/shared.sh | 2 +- tools/gluten-te/ubuntu/tpc.sh | 2 +- tools/workload/benchmark_velox/build-gluten.sh | 2 +- tools/workload/tpcds-delta/gen_data/tpcds-datagen-delta.sh | 2 +- 76 files changed, 76 insertions(+), 76 deletions(-) diff --git a/.github/workflows/util/install-flink-resources.sh b/.github/workflows/util/install-flink-resources.sh index 600192a9a1da..eb350eaaff4f 100755 --- a/.github/workflows/util/install-flink-resources.sh +++ b/.github/workflows/util/install-flink-resources.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/.github/workflows/util/install-resources.sh b/.github/workflows/util/install-resources.sh index e3254577947e..fb54080cce4f 100755 --- a/.github/workflows/util/install-resources.sh +++ b/.github/workflows/util/install-resources.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/dev/bloop-test.sh b/dev/bloop-test.sh index 7af256201042..dc09b8340a72 100755 --- a/dev/bloop-test.sh +++ b/dev/bloop-test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/dev/build-arrow.sh b/dev/build-arrow.sh index 41bebc7c4c27..54c6faaf331f 100755 --- a/dev/build-arrow.sh +++ b/dev/build-arrow.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/build-helper-functions.sh b/dev/build-helper-functions.sh index c029463a78c0..c6aa525cc483 100644 --- a/dev/build-helper-functions.sh +++ b/dev/build-helper-functions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/build-libhdfs3.sh b/dev/build-libhdfs3.sh index 66a73fb52d95..0eb77724d939 100755 --- a/dev/build-libhdfs3.sh +++ b/dev/build-libhdfs3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/build-thirdparty.sh b/dev/build-thirdparty.sh index 59dc029ec3ae..0ef37111fa2f 100755 --- a/dev/build-thirdparty.sh +++ b/dev/build-thirdparty.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/buildbundle-veloxbe.sh b/dev/buildbundle-veloxbe.sh index c5c6c5147c79..380a2a569ca0 100755 --- a/dev/buildbundle-veloxbe.sh +++ b/dev/buildbundle-veloxbe.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/builddep-veloxbe-inc.sh b/dev/builddep-veloxbe-inc.sh index 5fff1a3e766f..9869690ca9a0 100755 --- a/dev/builddep-veloxbe-inc.sh +++ b/dev/builddep-veloxbe-inc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/builddeps-veloxbe.sh b/dev/builddeps-veloxbe.sh index 0cd52f3ff97e..7018df478cf1 100755 --- a/dev/builddeps-veloxbe.sh +++ b/dev/builddeps-veloxbe.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/ci-velox-buildshared-centos-8.sh b/dev/ci-velox-buildshared-centos-8.sh index 48f7b4111585..acaa94a897a3 100755 --- a/dev/ci-velox-buildshared-centos-8.sh +++ b/dev/ci-velox-buildshared-centos-8.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/ci-velox-buildstatic-centos-7-enhanced-features.sh b/dev/ci-velox-buildstatic-centos-7-enhanced-features.sh index e9337b9dfebc..ac88fc44a481 100755 --- a/dev/ci-velox-buildstatic-centos-7-enhanced-features.sh +++ b/dev/ci-velox-buildstatic-centos-7-enhanced-features.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/ci-velox-buildstatic-centos-7.sh b/dev/ci-velox-buildstatic-centos-7.sh index 8d992005000e..8c078c5639c5 100755 --- a/dev/ci-velox-buildstatic-centos-7.sh +++ b/dev/ci-velox-buildstatic-centos-7.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/ci-velox-buildstatic-centos-8.sh b/dev/ci-velox-buildstatic-centos-8.sh index e3f45300d6da..eaacd71fd5b7 100644 --- a/dev/ci-velox-buildstatic-centos-8.sh +++ b/dev/ci-velox-buildstatic-centos-8.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/ci-velox-buildstatic-centos-9.sh b/dev/ci-velox-buildstatic-centos-9.sh index fd99283ebd21..15b9767e7137 100644 --- a/dev/ci-velox-buildstatic-centos-9.sh +++ b/dev/ci-velox-buildstatic-centos-9.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/format-cpp-code.sh b/dev/format-cpp-code.sh index 006ddbee2616..6332c6eb7836 100755 --- a/dev/format-cpp-code.sh +++ b/dev/format-cpp-code.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/format-scala-code.sh b/dev/format-scala-code.sh index 431521baf5d3..bec09380a30e 100755 --- a/dev/format-scala-code.sh +++ b/dev/format-scala-code.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/gen-all-config-docs.sh b/dev/gen-all-config-docs.sh index 2312cf6d6da8..01ae989a265b 100755 --- a/dev/gen-all-config-docs.sh +++ b/dev/gen-all-config-docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/gluten-build-info.sh b/dev/gluten-build-info.sh index ffe0f9c7d294..61d7693f9e61 100755 --- a/dev/gluten-build-info.sh +++ b/dev/gluten-build-info.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Licensed to the Apache Software Foundation (ASF) under one or more diff --git a/dev/info.sh b/dev/info.sh index 157173ed0b12..c56bedeef3f1 100755 --- a/dev/info.sh +++ b/dev/info.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) Intel, Inc. and its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/dev/package-vcpkg.sh b/dev/package-vcpkg.sh index 618846b49e97..7c2497d02cb0 100755 --- a/dev/package-vcpkg.sh +++ b/dev/package-vcpkg.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/package.sh b/dev/package.sh index 0a8f5ef096cc..34a24b9b52ab 100755 --- a/dev/package.sh +++ b/dev/package.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/release/build-release.sh b/dev/release/build-release.sh index d5b130faa8df..f92ce00154cf 100755 --- a/dev/release/build-release.sh +++ b/dev/release/build-release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/release/bump-version.sh b/dev/release/bump-version.sh index 85a951958984..f601165a1ad0 100755 --- a/dev/release/bump-version.sh +++ b/dev/release/bump-version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/release/package-release.sh b/dev/release/package-release.sh index 531be09cc88a..930a8f41da7a 100755 --- a/dev/release/package-release.sh +++ b/dev/release/package-release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/run-scala-test.sh b/dev/run-scala-test.sh index cfe195f9399f..0241f813e3bb 100755 --- a/dev/run-scala-test.sh +++ b/dev/run-scala-test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/dev/setup-qat-ubuntu.sh b/dev/setup-qat-ubuntu.sh index 979def4e2fab..795ad56b36ad 100755 --- a/dev/setup-qat-ubuntu.sh +++ b/dev/setup-qat-ubuntu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/dev/start-cudf.sh b/dev/start-cudf.sh index 2843a5d83b1c..9b0df915d30b 100644 --- a/dev/start-cudf.sh +++ b/dev/start-cudf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/ep/build-clickhouse/src/build-clickhouse.sh b/ep/build-clickhouse/src/build-clickhouse.sh index 0b016dedb11a..7441e714efc3 100644 --- a/ep/build-clickhouse/src/build-clickhouse.sh +++ b/ep/build-clickhouse/src/build-clickhouse.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/ep/build-clickhouse/src/install-ubuntu.sh b/ep/build-clickhouse/src/install-ubuntu.sh index 00351419442c..4ef11f919e88 100644 --- a/ep/build-clickhouse/src/install-ubuntu.sh +++ b/ep/build-clickhouse/src/install-ubuntu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/ep/build-clickhouse/src/package.sh b/ep/build-clickhouse/src/package.sh index 9fc833dcc6df..7af573f0b3c1 100755 --- a/ep/build-clickhouse/src/package.sh +++ b/ep/build-clickhouse/src/package.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/ep/build-clickhouse/src/resources/bin/check-env.sh b/ep/build-clickhouse/src/resources/bin/check-env.sh index b1e8a8a193d1..7b771119504e 100755 --- a/ep/build-clickhouse/src/resources/bin/check-env.sh +++ b/ep/build-clickhouse/src/resources/bin/check-env.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/ep/build-clickhouse/src/resources/bin/gluten.sh b/ep/build-clickhouse/src/resources/bin/gluten.sh index 22bd469f7e05..4962d952c1e1 100755 --- a/ep/build-clickhouse/src/resources/bin/gluten.sh +++ b/ep/build-clickhouse/src/resources/bin/gluten.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/ep/build-velox/src/build-velox.sh b/ep/build-velox/src/build-velox.sh index 7a7b1f05649d..2299792671fc 100755 --- a/ep/build-velox/src/build-velox.sh +++ b/ep/build-velox/src/build-velox.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/ep/build-velox/src/get-velox.sh b/ep/build-velox/src/get-velox.sh index b6c73c9aa146..4105366f6b71 100755 --- a/ep/build-velox/src/get-velox.sh +++ b/ep/build-velox/src/get-velox.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/ep/build-velox/src/setup-centos7.sh b/ep/build-velox/src/setup-centos7.sh index e249acd0d40f..3fe457b3261d 100755 --- a/ep/build-velox/src/setup-centos7.sh +++ b/ep/build-velox/src/setup-centos7.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/ep/build-velox/src/setup-centos8.sh b/ep/build-velox/src/setup-centos8.sh index ff69dc97ddf7..9841157539a4 100755 --- a/ep/build-velox/src/setup-centos8.sh +++ b/ep/build-velox/src/setup-centos8.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/ep/build-velox/src/setup-openeuler24.sh b/ep/build-velox/src/setup-openeuler24.sh index a2baa986d772..29204bbbf8e0 100755 --- a/ep/build-velox/src/setup-openeuler24.sh +++ b/ep/build-velox/src/setup-openeuler24.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/ep/build-velox/src/setup-rhel.sh b/ep/build-velox/src/setup-rhel.sh index 63bc1f06e2ea..853a4137f0d7 100755 --- a/ep/build-velox/src/setup-rhel.sh +++ b/ep/build-velox/src/setup-rhel.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-it/sbin/gluten-it.sh b/tools/gluten-it/sbin/gluten-it.sh index dd4c479d7e19..6acfd420b80b 100755 --- a/tools/gluten-it/sbin/gluten-it.sh +++ b/tools/gluten-it/sbin/gluten-it.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/build.sh b/tools/gluten-te/centos/build.sh index e9ee9a14e0e7..52e8efff643c 100755 --- a/tools/gluten-te/centos/build.sh +++ b/tools/gluten-te/centos/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/buildenv.sh b/tools/gluten-te/centos/buildenv.sh index 0806d58e185c..70314c9084eb 100755 --- a/tools/gluten-te/centos/buildenv.sh +++ b/tools/gluten-te/centos/buildenv.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/cbash-build.sh b/tools/gluten-te/centos/cbash-build.sh index 530f7edf2335..f3c5c1e734f0 100755 --- a/tools/gluten-te/centos/cbash-build.sh +++ b/tools/gluten-te/centos/cbash-build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/cbash-mount.sh b/tools/gluten-te/centos/cbash-mount.sh index d82d5c78d515..a09a748d11ad 100755 --- a/tools/gluten-te/centos/cbash-mount.sh +++ b/tools/gluten-te/centos/cbash-mount.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/centos-7-deps.sh b/tools/gluten-te/centos/centos-7-deps.sh index ec3abed71f81..b2d26b2585ee 100755 --- a/tools/gluten-te/centos/centos-7-deps.sh +++ b/tools/gluten-te/centos/centos-7-deps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/centos-8-deps.sh b/tools/gluten-te/centos/centos-8-deps.sh index 9f2b4d3c119e..0031b7ae28c1 100755 --- a/tools/gluten-te/centos/centos-8-deps.sh +++ b/tools/gluten-te/centos/centos-8-deps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/examples/buildhere-veloxbe-portable-libs/run-default.sh b/tools/gluten-te/centos/examples/buildhere-veloxbe-portable-libs/run-default.sh index 2648725ce0b5..da217b2eca06 100755 --- a/tools/gluten-te/centos/examples/buildhere-veloxbe-portable-libs/run-default.sh +++ b/tools/gluten-te/centos/examples/buildhere-veloxbe-portable-libs/run-default.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/examples/buildhere-veloxbe-portable-libs/run.sh b/tools/gluten-te/centos/examples/buildhere-veloxbe-portable-libs/run.sh index 51dbb93a8cb4..36f6b2c74dd0 100755 --- a/tools/gluten-te/centos/examples/buildhere-veloxbe-portable-libs/run.sh +++ b/tools/gluten-te/centos/examples/buildhere-veloxbe-portable-libs/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/examples/buildhere-veloxbe-portable-libs/scripts/all.sh b/tools/gluten-te/centos/examples/buildhere-veloxbe-portable-libs/scripts/all.sh index bf63dce9396e..3b3e69b9e379 100755 --- a/tools/gluten-te/centos/examples/buildhere-veloxbe-portable-libs/scripts/all.sh +++ b/tools/gluten-te/centos/examples/buildhere-veloxbe-portable-libs/scripts/all.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/gha/gha-checkout/checkout.sh b/tools/gluten-te/centos/gha/gha-checkout/checkout.sh index 2817539f7709..a1722283b507 100755 --- a/tools/gluten-te/centos/gha/gha-checkout/checkout.sh +++ b/tools/gluten-te/centos/gha/gha-checkout/checkout.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/gha/gha-checkout/clean.sh b/tools/gluten-te/centos/gha/gha-checkout/clean.sh index 29a97351f517..5514a22a3e3e 100755 --- a/tools/gluten-te/centos/gha/gha-checkout/clean.sh +++ b/tools/gluten-te/centos/gha/gha-checkout/clean.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/gha/gha-checkout/cp.sh b/tools/gluten-te/centos/gha/gha-checkout/cp.sh index 7070f64bc84d..9c0a29cae363 100755 --- a/tools/gluten-te/centos/gha/gha-checkout/cp.sh +++ b/tools/gluten-te/centos/gha/gha-checkout/cp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/gha/gha-checkout/exec.sh b/tools/gluten-te/centos/gha/gha-checkout/exec.sh index 3d0b9fe5f79c..7e2150401066 100755 --- a/tools/gluten-te/centos/gha/gha-checkout/exec.sh +++ b/tools/gluten-te/centos/gha/gha-checkout/exec.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/gha/gha-checkout/scripts/init.sh b/tools/gluten-te/centos/gha/gha-checkout/scripts/init.sh index 7c70ccf0d406..bddac06f00b8 100755 --- a/tools/gluten-te/centos/gha/gha-checkout/scripts/init.sh +++ b/tools/gluten-te/centos/gha/gha-checkout/scripts/init.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/centos/shared.sh b/tools/gluten-te/centos/shared.sh index 0253c16cef5f..962eea4967f5 100755 --- a/tools/gluten-te/centos/shared.sh +++ b/tools/gluten-te/centos/shared.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/build.sh b/tools/gluten-te/ubuntu/build.sh index 48f292d15e36..ddab2be86010 100755 --- a/tools/gluten-te/ubuntu/build.sh +++ b/tools/gluten-te/ubuntu/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/buildenv.sh b/tools/gluten-te/ubuntu/buildenv.sh index 4c552ba1178c..58881834081a 100755 --- a/tools/gluten-te/ubuntu/buildenv.sh +++ b/tools/gluten-te/ubuntu/buildenv.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/cbash-build.sh b/tools/gluten-te/ubuntu/cbash-build.sh index 58d61295baf7..e874bf37ac93 100755 --- a/tools/gluten-te/ubuntu/cbash-build.sh +++ b/tools/gluten-te/ubuntu/cbash-build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/cbash-mount.sh b/tools/gluten-te/ubuntu/cbash-mount.sh index fed4f4c6196a..4432ef33db76 100755 --- a/tools/gluten-te/ubuntu/cbash-mount.sh +++ b/tools/gluten-te/ubuntu/cbash-mount.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-dev/run.sh b/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-dev/run.sh index f2c5a1c6dba1..2baa2900e1a6 100755 --- a/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-dev/run.sh +++ b/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-dev/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-dev/scripts/all.sh b/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-dev/scripts/all.sh index 562828e5a34f..d69e3d4b60b7 100755 --- a/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-dev/scripts/all.sh +++ b/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-dev/scripts/all.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-portable-libs/run-default.sh b/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-portable-libs/run-default.sh index 2648725ce0b5..da217b2eca06 100755 --- a/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-portable-libs/run-default.sh +++ b/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-portable-libs/run-default.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-portable-libs/run.sh b/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-portable-libs/run.sh index 51dbb93a8cb4..36f6b2c74dd0 100755 --- a/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-portable-libs/run.sh +++ b/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-portable-libs/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-portable-libs/scripts/all.sh b/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-portable-libs/scripts/all.sh index 18dd92a343f9..c9db960eb3dd 100755 --- a/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-portable-libs/scripts/all.sh +++ b/tools/gluten-te/ubuntu/examples/buildhere-veloxbe-portable-libs/scripts/all.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/examples/buildhere-veloxbe/run.sh b/tools/gluten-te/ubuntu/examples/buildhere-veloxbe/run.sh index a7ba6c5261f1..a8bbeea83d67 100755 --- a/tools/gluten-te/ubuntu/examples/buildhere-veloxbe/run.sh +++ b/tools/gluten-te/ubuntu/examples/buildhere-veloxbe/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/gha/gha-checkout/checkout.sh b/tools/gluten-te/ubuntu/gha/gha-checkout/checkout.sh index 2817539f7709..a1722283b507 100755 --- a/tools/gluten-te/ubuntu/gha/gha-checkout/checkout.sh +++ b/tools/gluten-te/ubuntu/gha/gha-checkout/checkout.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/gha/gha-checkout/clean.sh b/tools/gluten-te/ubuntu/gha/gha-checkout/clean.sh index 29a97351f517..5514a22a3e3e 100755 --- a/tools/gluten-te/ubuntu/gha/gha-checkout/clean.sh +++ b/tools/gluten-te/ubuntu/gha/gha-checkout/clean.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/gha/gha-checkout/cp.sh b/tools/gluten-te/ubuntu/gha/gha-checkout/cp.sh index 7070f64bc84d..9c0a29cae363 100755 --- a/tools/gluten-te/ubuntu/gha/gha-checkout/cp.sh +++ b/tools/gluten-te/ubuntu/gha/gha-checkout/cp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/gha/gha-checkout/exec.sh b/tools/gluten-te/ubuntu/gha/gha-checkout/exec.sh index 3d0b9fe5f79c..7e2150401066 100755 --- a/tools/gluten-te/ubuntu/gha/gha-checkout/exec.sh +++ b/tools/gluten-te/ubuntu/gha/gha-checkout/exec.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/gha/gha-checkout/scripts/init.sh b/tools/gluten-te/ubuntu/gha/gha-checkout/scripts/init.sh index 7c70ccf0d406..bddac06f00b8 100755 --- a/tools/gluten-te/ubuntu/gha/gha-checkout/scripts/init.sh +++ b/tools/gluten-te/ubuntu/gha/gha-checkout/scripts/init.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/scripts/cmd.sh b/tools/gluten-te/ubuntu/scripts/cmd.sh index 85f47f193b30..787c4ac620e3 100755 --- a/tools/gluten-te/ubuntu/scripts/cmd.sh +++ b/tools/gluten-te/ubuntu/scripts/cmd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/scripts/set-login-env.sh b/tools/gluten-te/ubuntu/scripts/set-login-env.sh index 7211b714989f..bce3f89162bf 100755 --- a/tools/gluten-te/ubuntu/scripts/set-login-env.sh +++ b/tools/gluten-te/ubuntu/scripts/set-login-env.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/shared.sh b/tools/gluten-te/ubuntu/shared.sh index 0253c16cef5f..962eea4967f5 100755 --- a/tools/gluten-te/ubuntu/shared.sh +++ b/tools/gluten-te/ubuntu/shared.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/gluten-te/ubuntu/tpc.sh b/tools/gluten-te/ubuntu/tpc.sh index 1c1201692173..eaa44d28540e 100755 --- a/tools/gluten-te/ubuntu/tpc.sh +++ b/tools/gluten-te/ubuntu/tpc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. diff --git a/tools/workload/benchmark_velox/build-gluten.sh b/tools/workload/benchmark_velox/build-gluten.sh index 52e3f31e5210..fee43f9ce1a7 100755 --- a/tools/workload/benchmark_velox/build-gluten.sh +++ b/tools/workload/benchmark_velox/build-gluten.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with diff --git a/tools/workload/tpcds-delta/gen_data/tpcds-datagen-delta.sh b/tools/workload/tpcds-delta/gen_data/tpcds-datagen-delta.sh index cdd91eb5e1b1..58e6295b93cc 100755 --- a/tools/workload/tpcds-delta/gen_data/tpcds-datagen-delta.sh +++ b/tools/workload/tpcds-delta/gen_data/tpcds-datagen-delta.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with From 614d7cf8afab55609be3cc21085d74c43d894748 Mon Sep 17 00:00:00 2001 From: zouxxyy Date: Wed, 18 Mar 2026 12:39:32 +0800 Subject: [PATCH 2/2] add checker --- .github/workflows/util/check.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/util/check.sh b/.github/workflows/util/check.sh index d8db8bd402c3..f3aa7d54cfc6 100755 --- a/.github/workflows/util/check.sh +++ b/.github/workflows/util/check.sh @@ -15,6 +15,9 @@ # limitations under the License. export BASE_COMMIT=$1 + +RESULT=0 + ./.github/workflows/util/check.py header branch if [ $? -ne 0 ]; then ./.github/workflows/util/check.py header branch --fix @@ -22,6 +25,20 @@ if [ $? -ne 0 ]; then echo "patch -p1 \<