Martin Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48904 )
Change subject: util: Update all shebangs to use /usr/bin/env ......................................................................
util: Update all shebangs to use /usr/bin/env
Instead of hardcoding paths to the executables, use the version in the path. This allows the scripts to work on more systems, and allows the binary version to be changed more easily if needed.
Signed-off-by: Martin Roth martin@coreboot.org Change-Id: Ifcc56aa21092cd3866eacb6a02d198110ec6051d --- M util/board_status/board_status.sh M util/board_status/getrevision.sh M util/chromeos/gen_test_hwid.sh M util/crossgcc/buildgcc M util/docker/coreboot.org-status/board-status.html/bucketize.sh M util/docker/coreboot.org-status/board-status.html/status-to-html.sh M util/docker/coreboot.org-status/board-status.html/tohtml.sh M util/docker/coreboot.org-status/run.sh M util/docker/doc.coreboot.org/ditaa.sh M util/docker/doc.coreboot.org/makeSphinx.sh M util/find_usbdebug/find_usbdebug.sh M util/genbuild_h/genbuild_h.sh M util/gitconfig/commit-msg M util/gitconfig/pre-commit M util/gitconfig/test/commit-message-hook.sh M util/gitconfig/test/helpers.sh M util/gitconfig/test/timeout.sh M util/kconfig/check.sh M util/kconfig/lxdialog/check-lxdialog.sh M util/lint/lint M util/lint/lint-000-license-headers M util/lint/lint-001-no-global-config-in-romstage M util/lint/lint-007-checkpatch M util/lint/lint-008-kconfig M util/lint/lint-014-qualified-types M util/lint/lint-extended-007-checkpatch M util/lint/lint-extended-015-final-newlines M util/lint/lint-extended-020-signed-off-by M util/lint/lint-stable-000-license-headers M util/lint/lint-stable-003-whitespace M util/lint/lint-stable-004-style-labels M util/lint/lint-stable-005-board-status M util/lint/lint-stable-006-board-name M util/lint/lint-stable-008-kconfig M util/lint/lint-stable-009-old-licenses M util/lint/lint-stable-010-asm-syntax M util/lint/lint-stable-012-executable-bit M util/lint/lint-stable-013-site-local M util/lint/lint-stable-016-non-ascii M util/lint/lint-stable-017-configs M util/lint/lint-stable-018-symlinks M util/lint/lint-stable-019-header-files M util/lint/lint-stable-021-coreboot-lowercase M util/lint/lint-stable-022-clang-format M util/lint/lint-stable-023-filenames M util/lint/lint-stable-024-kconfig-no-subsystem M util/lint/remccoms3.sed M util/msrtool/configure M util/release/gerrit_stats.pl M util/riscv/make-spike-elf.sh M util/scripts/cross-repo-cherrypick M util/scripts/decode_spd.sh M util/scripts/find-unused-kconfig-symbols.sh M util/scripts/no-fsf-addresses.sh 54 files changed, 54 insertions(+), 54 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/48904/1
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh index 31c3e7c..8073ae4 100755 --- a/util/board_status/board_status.sh +++ b/util/board_status/board_status.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # #
diff --git a/util/board_status/getrevision.sh b/util/board_status/getrevision.sh index 20871f6..ddbfde0 100755 --- a/util/board_status/getrevision.sh +++ b/util/board_status/getrevision.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # From the flashrom project but heavily modified since then. diff --git a/util/chromeos/gen_test_hwid.sh b/util/chromeos/gen_test_hwid.sh index f77564a..163a12a 100755 --- a/util/chromeos/gen_test_hwid.sh +++ b/util/chromeos/gen_test_hwid.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 5af3d5a..96256cd 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # shellcheck disable=SC2030,SC2031,SC2059 # The above line must be directly after the shebang line. # Disables these warnings: diff --git a/util/docker/coreboot.org-status/board-status.html/bucketize.sh b/util/docker/coreboot.org-status/board-status.html/bucketize.sh index cb643e7..fd3a94b 100755 --- a/util/docker/coreboot.org-status/board-status.html/bucketize.sh +++ b/util/docker/coreboot.org-status/board-status.html/bucketize.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # usage: $0 [weekly|monthly|quarterly] < filenames # sorts files of the form VENDOR/BOARD/COMMIT/DATE/revision.txt # into buckets of the given granularity diff --git a/util/docker/coreboot.org-status/board-status.html/status-to-html.sh b/util/docker/coreboot.org-status/board-status.html/status-to-html.sh index 6630b30..2fb958c 100755 --- a/util/docker/coreboot.org-status/board-status.html/status-to-html.sh +++ b/util/docker/coreboot.org-status/board-status.html/status-to-html.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh ls -d */*/*/*/ | `dirname $0`/bucketize.sh weekly | `dirname $0`/tohtml.sh diff --git a/util/docker/coreboot.org-status/board-status.html/tohtml.sh b/util/docker/coreboot.org-status/board-status.html/tohtml.sh index 98bbc94..0244b8e 100755 --- a/util/docker/coreboot.org-status/board-status.html/tohtml.sh +++ b/util/docker/coreboot.org-status/board-status.html/tohtml.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh export COREBOOT_DIR="../coreboot.git" export GIT_DIR="$COREBOOT_DIR/.git" CODE_GITWEB="https://review.coreboot.org/gitweb/cgit/coreboot.git/commit/?id=" diff --git a/util/docker/coreboot.org-status/run.sh b/util/docker/coreboot.org-status/run.sh index ba5ec91..84de3ca 100755 --- a/util/docker/coreboot.org-status/run.sh +++ b/util/docker/coreboot.org-status/run.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/docker/doc.coreboot.org/ditaa.sh b/util/docker/doc.coreboot.org/ditaa.sh index 5f27f53..637379f 100755 --- a/util/docker/doc.coreboot.org/ditaa.sh +++ b/util/docker/doc.coreboot.org/ditaa.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh exec java -jar /usr/lib/ditaa0_9.jar $* diff --git a/util/docker/doc.coreboot.org/makeSphinx.sh b/util/docker/doc.coreboot.org/makeSphinx.sh index 3b0c4e3..96a593c 100755 --- a/util/docker/doc.coreboot.org/makeSphinx.sh +++ b/util/docker/doc.coreboot.org/makeSphinx.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash
if [ "$1" == "livehtml" ]; then echo "Starting live documentation build" diff --git a/util/find_usbdebug/find_usbdebug.sh b/util/find_usbdebug/find_usbdebug.sh index ec81dd3..53b9a7f 100755 --- a/util/find_usbdebug/find_usbdebug.sh +++ b/util/find_usbdebug/find_usbdebug.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh index 3df3730..b82a74b 100755 --- a/util/genbuild_h/genbuild_h.sh +++ b/util/genbuild_h/genbuild_h.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/gitconfig/commit-msg b/util/gitconfig/commit-msg index f0c0b65..99c8941 100755 --- a/util/gitconfig/commit-msg +++ b/util/gitconfig/commit-msg @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Part of Gerrit Code Review (http://code.google.com/p/gerrit/) # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/util/gitconfig/pre-commit b/util/gitconfig/pre-commit index 7b7ab48..8b571a7 100755 --- a/util/gitconfig/pre-commit +++ b/util/gitconfig/pre-commit @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ## ## SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/gitconfig/test/commit-message-hook.sh b/util/gitconfig/test/commit-message-hook.sh index a99570f..f231f14 100755 --- a/util/gitconfig/test/commit-message-hook.sh +++ b/util/gitconfig/test/commit-message-hook.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by diff --git a/util/gitconfig/test/helpers.sh b/util/gitconfig/test/helpers.sh index 2e8b407..fbb8442 100644 --- a/util/gitconfig/test/helpers.sh +++ b/util/gitconfig/test/helpers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by diff --git a/util/gitconfig/test/timeout.sh b/util/gitconfig/test/timeout.sh index 989afcc..2d600f4 100755 --- a/util/gitconfig/test/timeout.sh +++ b/util/gitconfig/test/timeout.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by diff --git a/util/kconfig/check.sh b/util/kconfig/check.sh index 55b79ba..2e0060f 100755 --- a/util/kconfig/check.sh +++ b/util/kconfig/check.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Needed for systems without gettext $* -x c -o /dev/null - > /dev/null 2>&1 << EOF #include <libintl.h> diff --git a/util/kconfig/lxdialog/check-lxdialog.sh b/util/kconfig/lxdialog/check-lxdialog.sh index 78939da..6833feb 100755 --- a/util/kconfig/lxdialog/check-lxdialog.sh +++ b/util/kconfig/lxdialog/check-lxdialog.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Check ncurses compatibility
# What library to link diff --git a/util/lint/lint b/util/lint/lint index a8c08d5..6bf982d 100755 --- a/util/lint/lint +++ b/util/lint/lint @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/lint/lint-000-license-headers b/util/lint/lint-000-license-headers index c43151a..2f65321 100755 --- a/util/lint/lint-000-license-headers +++ b/util/lint/lint-000-license-headers @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-001-no-global-config-in-romstage b/util/lint/lint-001-no-global-config-in-romstage index 1ed55e0..e81bea7 100755 --- a/util/lint/lint-001-no-global-config-in-romstage +++ b/util/lint/lint-001-no-global-config-in-romstage @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-007-checkpatch b/util/lint/lint-007-checkpatch index bc34e6b..113d0ae 100755 --- a/util/lint/lint-007-checkpatch +++ b/util/lint/lint-007-checkpatch @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-008-kconfig b/util/lint/lint-008-kconfig index 31aba55..c24ff14 100755 --- a/util/lint/lint-008-kconfig +++ b/util/lint/lint-008-kconfig @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-014-qualified-types b/util/lint/lint-014-qualified-types index 8da23b6..48810cf 100755 --- a/util/lint/lint-014-qualified-types +++ b/util/lint/lint-014-qualified-types @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-extended-007-checkpatch b/util/lint/lint-extended-007-checkpatch index e2b39de..8ec1188 100755 --- a/util/lint/lint-extended-007-checkpatch +++ b/util/lint/lint-extended-007-checkpatch @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-extended-015-final-newlines b/util/lint/lint-extended-015-final-newlines index 74f1f03..3ab0fbf 100755 --- a/util/lint/lint-extended-015-final-newlines +++ b/util/lint/lint-extended-015-final-newlines @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-extended-020-signed-off-by b/util/lint/lint-extended-020-signed-off-by index cc1b7ac..6d569aa 100755 --- a/util/lint/lint-extended-020-signed-off-by +++ b/util/lint/lint-extended-020-signed-off-by @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # DESCR: Check for a signed-off-by line on the latest git commit diff --git a/util/lint/lint-stable-000-license-headers b/util/lint/lint-stable-000-license-headers index 518b232..ccecba6 100755 --- a/util/lint/lint-stable-000-license-headers +++ b/util/lint/lint-stable-000-license-headers @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-only # # DESCR: Check that files have license headers diff --git a/util/lint/lint-stable-003-whitespace b/util/lint/lint-stable-003-whitespace index 4304043..fd4d0e4 100755 --- a/util/lint/lint-stable-003-whitespace +++ b/util/lint/lint-stable-003-whitespace @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-stable-004-style-labels b/util/lint/lint-stable-004-style-labels index 36d2581..393774f 100755 --- a/util/lint/lint-stable-004-style-labels +++ b/util/lint/lint-stable-004-style-labels @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-stable-005-board-status b/util/lint/lint-stable-005-board-status index d87f8a4..617440b 100755 --- a/util/lint/lint-stable-005-board-status +++ b/util/lint/lint-stable-005-board-status @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # DESCR: Check that every board has a meaningful board_info.txt diff --git a/util/lint/lint-stable-006-board-name b/util/lint/lint-stable-006-board-name index 77d4e56..6f4e4b6 100755 --- a/util/lint/lint-stable-006-board-name +++ b/util/lint/lint-stable-006-board-name @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # DESCR: Check that every vendor and board has a Kconfig.name diff --git a/util/lint/lint-stable-008-kconfig b/util/lint/lint-stable-008-kconfig index 3b204fb..3323971 100755 --- a/util/lint/lint-stable-008-kconfig +++ b/util/lint/lint-stable-008-kconfig @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-stable-009-old-licenses b/util/lint/lint-stable-009-old-licenses index d2aff3a..8226fdd 100755 --- a/util/lint/lint-stable-009-old-licenses +++ b/util/lint/lint-stable-009-old-licenses @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-stable-010-asm-syntax b/util/lint/lint-stable-010-asm-syntax index 344068f..474a05d 100755 --- a/util/lint/lint-stable-010-asm-syntax +++ b/util/lint/lint-stable-010-asm-syntax @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-stable-012-executable-bit b/util/lint/lint-stable-012-executable-bit index 5651a67..640bb08 100755 --- a/util/lint/lint-stable-012-executable-bit +++ b/util/lint/lint-stable-012-executable-bit @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # DESCR: Check that source files are not executable diff --git a/util/lint/lint-stable-013-site-local b/util/lint/lint-stable-013-site-local index 4579cf9..53693f2 100755 --- a/util/lint/lint-stable-013-site-local +++ b/util/lint/lint-stable-013-site-local @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # DESCR: Verify that site-local is not in the coreboot repository diff --git a/util/lint/lint-stable-016-non-ascii b/util/lint/lint-stable-016-non-ascii index 4c97c37..52b6679 100755 --- a/util/lint/lint-stable-016-non-ascii +++ b/util/lint/lint-stable-016-non-ascii @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-stable-017-configs b/util/lint/lint-stable-017-configs index 4f29850..311ef38 100755 --- a/util/lint/lint-stable-017-configs +++ b/util/lint/lint-stable-017-configs @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-stable-018-symlinks b/util/lint/lint-stable-018-symlinks index 8739a8b..cd5c844 100755 --- a/util/lint/lint-stable-018-symlinks +++ b/util/lint/lint-stable-018-symlinks @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-stable-019-header-files b/util/lint/lint-stable-019-header-files index 11cb6b7..fc440d1 100755 --- a/util/lint/lint-stable-019-header-files +++ b/util/lint/lint-stable-019-header-files @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-stable-021-coreboot-lowercase b/util/lint/lint-stable-021-coreboot-lowercase index 45bc819..b13cb44 100755 --- a/util/lint/lint-stable-021-coreboot-lowercase +++ b/util/lint/lint-stable-021-coreboot-lowercase @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-stable-022-clang-format b/util/lint/lint-stable-022-clang-format index 031fdb1..9c94fbc 100755 --- a/util/lint/lint-stable-022-clang-format +++ b/util/lint/lint-stable-022-clang-format @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-stable-023-filenames b/util/lint/lint-stable-023-filenames index a70f988..8b519a8 100755 --- a/util/lint/lint-stable-023-filenames +++ b/util/lint/lint-stable-023-filenames @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/lint/lint-stable-024-kconfig-no-subsystem b/util/lint/lint-stable-024-kconfig-no-subsystem index 46dbc97..9a532e8 100755 --- a/util/lint/lint-stable-024-kconfig-no-subsystem +++ b/util/lint/lint-stable-024-kconfig-no-subsystem @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: GPL-2.0-or-later # # DESCR: Check that no board's Kconfig sets SUBSYSTEM_(VENDOR|DEVICE)_ID diff --git a/util/lint/remccoms3.sed b/util/lint/remccoms3.sed index 429d3bd..fd700df 100644 --- a/util/lint/remccoms3.sed +++ b/util/lint/remccoms3.sed @@ -1,4 +1,4 @@ -#! /bin/sed -nf +#!/usr/bin/env sed -nf
# Remove C and C++ comments, by Brian Hiles (brian_hiles@rocketmail.com)
diff --git a/util/msrtool/configure b/util/msrtool/configure index cf78ad1..59d5c63 100755 --- a/util/msrtool/configure +++ b/util/msrtool/configure @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # # This program is free software; you can redistribute it and/or modify diff --git a/util/release/gerrit_stats.pl b/util/release/gerrit_stats.pl index 6500426..9468157 100755 --- a/util/release/gerrit_stats.pl +++ b/util/release/gerrit_stats.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # SPDX-License-Identifier: GPL-2.0-only
diff --git a/util/riscv/make-spike-elf.sh b/util/riscv/make-spike-elf.sh index 834e8d2..135b62a 100755 --- a/util/riscv/make-spike-elf.sh +++ b/util/riscv/make-spike-elf.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # # This script is based on: # https://docs.google.com/document/d/1Pvf9Yxorcd3sbgs8WcomcTl3J4bmX6e1UE0ROCef... diff --git a/util/scripts/cross-repo-cherrypick b/util/scripts/cross-repo-cherrypick index 35e4b33..c640e33 100755 --- a/util/scripts/cross-repo-cherrypick +++ b/util/scripts/cross-repo-cherrypick @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # cross-repo-cherrypick - rebase helper script # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/scripts/decode_spd.sh b/util/scripts/decode_spd.sh index e515154..252a4b7 100755 --- a/util/scripts/decode_spd.sh +++ b/util/scripts/decode_spd.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # # SPDX-License-Identifier: GPL-2.0-only diff --git a/util/scripts/find-unused-kconfig-symbols.sh b/util/scripts/find-unused-kconfig-symbols.sh index 3b84d25..48a89b9 100755 --- a/util/scripts/find-unused-kconfig-symbols.sh +++ b/util/scripts/find-unused-kconfig-symbols.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Permission to use, copy, modify, and/or distribute this software for # any purpose with or without fee is hereby granted, provided that the # above copyright notice and this permission notice appear in all copies. diff --git a/util/scripts/no-fsf-addresses.sh b/util/scripts/no-fsf-addresses.sh index ef54fc1..aceeeb8 100755 --- a/util/scripts/no-fsf-addresses.sh +++ b/util/scripts/no-fsf-addresses.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # SPDX-License-Identifier: ISC
filelist=$(git ls-files $* | \