From b02d85de9ac144d27b1e218a045f3a2e5cbc2627 Mon Sep 17 00:00:00 2001 From: Hiroyuki Sato Date: Mon, 2 Jun 2025 10:32:06 +0900 Subject: [PATCH 1/3] GH-46662: [CI][Dev] Fix shellcheck SC2148 errors in ci/scripts directory --- .pre-commit-config.yaml | 2 ++ ci/scripts/util_enable_core_dumps.sh | 1 + ci/scripts/util_log.sh | 1 + 3 files changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 38a89720718b..c650bf1719f2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -299,7 +299,9 @@ repos: ?^ci/scripts/release_test\.sh$| ?^ci/scripts/ruby_test\.sh$| ?^ci/scripts/rust_build\.sh$| + ?^ci/scripts/util_enable_core_dumps\.sh$| ?^ci/scripts/util_free_space\.sh$| + ?^ci/scripts/util_log\.sh$| ?^cpp/build-support/build-lz4-lib\.sh$| ?^cpp/build-support/build-zstd-lib\.sh$| ?^cpp/build-support/get-upstream-commit\.sh$| diff --git a/ci/scripts/util_enable_core_dumps.sh b/ci/scripts/util_enable_core_dumps.sh index 09f8d2d72709..080300677390 100644 --- a/ci/scripts/util_enable_core_dumps.sh +++ b/ci/scripts/util_enable_core_dumps.sh @@ -1,3 +1,4 @@ +#!/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 diff --git a/ci/scripts/util_log.sh b/ci/scripts/util_log.sh index 6caad1408a2f..ac2861155a0f 100644 --- a/ci/scripts/util_log.sh +++ b/ci/scripts/util_log.sh @@ -1,3 +1,4 @@ +#!/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 From 4e2fed4230decac6aee13804854c9fd1c8b27214 Mon Sep 17 00:00:00 2001 From: Hiroyuki Sato Date: Mon, 2 Jun 2025 11:11:19 +0900 Subject: [PATCH 2/3] GH-46662: [CI][Dev] Fix shellcheck SC2148 errors in ci/scripts directory --- ci/scripts/util_enable_core_dumps.sh | 3 ++- ci/scripts/util_log.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/scripts/util_enable_core_dumps.sh b/ci/scripts/util_enable_core_dumps.sh index 080300677390..08abe7f5869a 100644 --- a/ci/scripts/util_enable_core_dumps.sh +++ b/ci/scripts/util_enable_core_dumps.sh @@ -1,4 +1,5 @@ -#!/usr/bin/env bash +# shellcheck disable=SC2148 +# # 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 diff --git a/ci/scripts/util_log.sh b/ci/scripts/util_log.sh index ac2861155a0f..dae0a5dc79ad 100644 --- a/ci/scripts/util_log.sh +++ b/ci/scripts/util_log.sh @@ -1,4 +1,5 @@ -#!/usr/bin/env bash +# shellcheck disable=SC2148 +# # 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 From 0d58eb36827970f0c27585d004decb10d011f363 Mon Sep 17 00:00:00 2001 From: Hiroyuki Sato Date: Mon, 2 Jun 2025 12:00:03 +0900 Subject: [PATCH 3/3] GH-46662: [CI][Dev] Fix shellcheck SC2148 errors in ci/scripts directory --- ci/scripts/util_enable_core_dumps.sh | 2 +- ci/scripts/util_log.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/scripts/util_enable_core_dumps.sh b/ci/scripts/util_enable_core_dumps.sh index 08abe7f5869a..48061fd50c5a 100644 --- a/ci/scripts/util_enable_core_dumps.sh +++ b/ci/scripts/util_enable_core_dumps.sh @@ -1,4 +1,4 @@ -# shellcheck disable=SC2148 +# shellcheck shell=bash # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file diff --git a/ci/scripts/util_log.sh b/ci/scripts/util_log.sh index dae0a5dc79ad..08b768905d0f 100644 --- a/ci/scripts/util_log.sh +++ b/ci/scripts/util_log.sh @@ -1,4 +1,4 @@ -# shellcheck disable=SC2148 +# shellcheck shell=bash # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file