From c2e494136731571a78b2bdd7ca9dc536a8b5aecd Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Sun, 7 Oct 2018 01:58:27 +0000 Subject: treewide: use /usr/bin/env where appropriate Some Unix systems (GuixSD, NixOS) do not install programs like Bash and Python to /usr/bin, and /usr/bin/env has to be used to locate these instead. Change-Id: I7546bcb881c532adc984577ecb0ee2ec4f2efe00 Signed-off-by: Yegor Timoshenko Reviewed-on: https://review.coreboot.org/28953 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/chromeos/crosfirmware.sh | 2 +- util/chromeos/extract_blobs.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'util/chromeos') diff --git a/util/chromeos/crosfirmware.sh b/util/chromeos/crosfirmware.sh index 9e00ba6aff..ba0c2590d2 100755 --- a/util/chromeos/crosfirmware.sh +++ b/util/chromeos/crosfirmware.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # This file is part of the coreboot project. # diff --git a/util/chromeos/extract_blobs.sh b/util/chromeos/extract_blobs.sh index af9d026234..a674ada91f 100755 --- a/util/chromeos/extract_blobs.sh +++ b/util/chromeos/extract_blobs.sh @@ -1,4 +1,4 @@ -#!/bin/bash -x +#!/usr/bin/env bash # # This file is part of the coreboot project. # @@ -14,6 +14,8 @@ # GNU General Public License for more details. # +set -x + IMAGE=$1 if [ ! -r "$IMAGE" ]; then -- cgit v1.2.3