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/scripts/prepare-commit-msg.clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/scripts/prepare-commit-msg.clang-format') diff --git a/util/scripts/prepare-commit-msg.clang-format b/util/scripts/prepare-commit-msg.clang-format index 7033f3cc07..a6b3d08a26 100755 --- a/util/scripts/prepare-commit-msg.clang-format +++ b/util/scripts/prepare-commit-msg.clang-format @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash files=`git diff --cached --name-only | grep '\.[ch]$'` if [ -z "$files" ]; then exit 0 -- cgit v1.2.3