Skip to content

Commit 975b8d3

Browse files
committed
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 <[email protected]>
1 parent 8f9f2fb commit 975b8d3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build/root/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ endif
3030
# clean: Clean up.
3131

3232
# It's necessary to set this because some environments don't link sh -> bash.
33-
SHELL := /bin/bash
33+
SHELL := /usr/bin/env bash
3434

3535
# We don't need make's built-in rules.
3636
MAKEFLAGS += --no-builtin-rules

build/root/Makefile.generated_files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ endif
3030

3131

3232
# It's necessary to set this because some environments don't link sh -> bash.
33-
SHELL := /bin/bash
33+
SHELL := /usr/bin/env bash
3434

3535
# This rule collects all the generated file sets into a single rule. Other
3636
# rules should depend on this to ensure generated files are rebuilt.

hack/update-workspace-mirror.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Copyright 2018 The Kubernetes Authors.
44
#

0 commit comments

Comments
 (0)