aboutsummaryrefslogtreecommitdiff
path: root/util/lint
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@riseup.net>2018-10-07 01:58:27 +0000
committerPatrick Georgi <pgeorgi@google.com>2018-11-17 07:32:03 +0000
commitc2e494136731571a78b2bdd7ca9dc536a8b5aecd (patch)
treea31bde7ce2d3ce4a96445200491b12c4e40a14f0 /util/lint
parent15316e2321e9936da5f0906ec76545830938a46e (diff)
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 <yegortimoshenko@riseup.net> Reviewed-on: https://review.coreboot.org/28953 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/lint')
-rwxr-xr-xutil/lint/check_lint_tests2
-rwxr-xr-xutil/lint/checkpatch_json.py2
-rwxr-xr-xutil/lint/kconfig_lint2
3 files changed, 3 insertions, 3 deletions
diff --git a/util/lint/check_lint_tests b/util/lint/check_lint_tests
index 741d2459c8..5ba33c8e37 100755
--- a/util/lint/check_lint_tests
+++ b/util/lint/check_lint_tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# test to make sure the lint tests fail
SPACE=' '
diff --git a/util/lint/checkpatch_json.py b/util/lint/checkpatch_json.py
index 44b2a8b887..74ad96a100 100755
--- a/util/lint/checkpatch_json.py
+++ b/util/lint/checkpatch_json.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2018 Intel Corporation.
# written by Naresh G Solanki<naresh.solanki@intel.com> and
# Maulik V Vaghela <maulik.v.vaghela@intel.com>
diff --git a/util/lint/kconfig_lint b/util/lint/kconfig_lint
index 62997dd2b8..eddd8de6ee 100755
--- a/util/lint/kconfig_lint
+++ b/util/lint/kconfig_lint
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# This file is part of the coreboot project.