Use /usr/bin/env bash in Makefiles and scripts

This allows the execution of the Makefiles from distributions which do
have `bash` in a different path.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Sascha Grunert 2020-08-16 21:13:18 +02:00
parent 8f9f2fb2d6
commit 975b8d352e
No known key found for this signature in database
GPG Key ID: 8CE029DD1A866E52
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ endif
# clean: Clean up.
# It's necessary to set this because some environments don't link sh -> bash.
SHELL := /bin/bash
SHELL := /usr/bin/env bash
# We don't need make's built-in rules.
MAKEFLAGS += --no-builtin-rules

View File

@ -30,7 +30,7 @@ endif
# It's necessary to set this because some environments don't link sh -> bash.
SHELL := /bin/bash
SHELL := /usr/bin/env bash
# This rule collects all the generated file sets into a single rule. Other
# rules should depend on this to ensure generated files are rebuilt.

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright 2018 The Kubernetes Authors.
#