From e2edb3e405b6e8158bab068736af2e916d157ebc Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Sun, 6 Mar 2022 01:18:40 -0300 Subject: [PATCH] scripts: Allow use of bash outside of /bin Even though bash is commonly available as /bin/bash there are exceptions (e.g NixOS). This commit allow the use of the scripts in my environment and is generic. Signed-off-by: Otavio Salvador --- boards/x86/common/scripts/build_grub.sh | 2 +- scripts/checkpatch/check_known_checkpatch_issues.sh | 2 +- scripts/checkpatch/maintainer-checkpatch.bash | 2 +- scripts/checkpatch/timestamp | 2 +- scripts/coccicheck | 2 +- tests/net/all/check_net_options.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/boards/x86/common/scripts/build_grub.sh b/boards/x86/common/scripts/build_grub.sh index bfb42ce093..b7e5a3511d 100755 --- a/boards/x86/common/scripts/build_grub.sh +++ b/boards/x86/common/scripts/build_grub.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Originally from the Galileo port in contiki # https://github.com/otcshare/contiki-x86 diff --git a/scripts/checkpatch/check_known_checkpatch_issues.sh b/scripts/checkpatch/check_known_checkpatch_issues.sh index 508c8f1fb2..19c4fbea34 100755 --- a/scripts/checkpatch/check_known_checkpatch_issues.sh +++ b/scripts/checkpatch/check_known_checkpatch_issues.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (c) 2015 Intel Corporation. diff --git a/scripts/checkpatch/maintainer-checkpatch.bash b/scripts/checkpatch/maintainer-checkpatch.bash index a781471246..4225535026 100755 --- a/scripts/checkpatch/maintainer-checkpatch.bash +++ b/scripts/checkpatch/maintainer-checkpatch.bash @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (c) 2015 Wind River Systems, Inc. diff --git a/scripts/checkpatch/timestamp b/scripts/checkpatch/timestamp index a88cabffe4..21702198c1 100755 --- a/scripts/checkpatch/timestamp +++ b/scripts/checkpatch/timestamp @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (c) 2015 Wind River Systems, Inc. diff --git a/scripts/coccicheck b/scripts/coccicheck index aafb844150..af2577c15b 100755 --- a/scripts/coccicheck +++ b/scripts/coccicheck @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-2.0 # diff --git a/tests/net/all/check_net_options.sh b/tests/net/all/check_net_options.sh index 040f7b3b87..b0ac34ccec 100755 --- a/tests/net/all/check_net_options.sh +++ b/tests/net/all/check_net_options.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (c) 2019 Intel Corporation. #