From 0ad5fbd48d0169576d6ed4666b909635b7cde89b Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 24 Dec 2020 12:06:38 -0700 Subject: 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 Change-Id: Ifcc56aa21092cd3866eacb6a02d198110ec6051d Reviewed-on: https://review.coreboot.org/c/coreboot/+/48904 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- util/scripts/cross-repo-cherrypick | 2 +- util/scripts/decode_spd.sh | 2 +- util/scripts/find-unused-kconfig-symbols.sh | 2 +- util/scripts/no-fsf-addresses.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'util/scripts') diff --git a/util/scripts/cross-repo-cherrypick b/util/scripts/cross-repo-cherrypick index 35e4b33502..c640e33f65 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 e515154ee7..252a4b7d32 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 3b84d25f57..48a89b96df 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 ef54fc1be8..aceeeb831f 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 $* | \ -- cgit v1.2.3