From 975b8d352eb97095b069d0beafccb8f2568380f0 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Sun, 16 Aug 2020 21:13:18 +0200 Subject: [PATCH] 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 --- build/root/Makefile | 2 +- build/root/Makefile.generated_files | 2 +- hack/update-workspace-mirror.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/root/Makefile b/build/root/Makefile index 41ed3781108..a392aef3248 100644 --- a/build/root/Makefile +++ b/build/root/Makefile @@ -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 diff --git a/build/root/Makefile.generated_files b/build/root/Makefile.generated_files index 1d5797f4e05..e40448f2428 100644 --- a/build/root/Makefile.generated_files +++ b/build/root/Makefile.generated_files @@ -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. diff --git a/hack/update-workspace-mirror.sh b/hack/update-workspace-mirror.sh index c4ff61707c1..59d3b90ac58 100755 --- a/hack/update-workspace-mirror.sh +++ b/hack/update-workspace-mirror.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Kubernetes Authors. #