Skip to content

Commit 49fe355

Browse files
authored
chore: Don't hardcode /bin/bash (#1011)
Bash is not always installed in /bin/bash. Mitigate that by relying on bash being in PATH.
1 parent b868010 commit 49fe355

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Image URL to use all building/pushing image targets
33
IMG ?= controller:latest
44

5-
SHELL := /bin/bash -o pipefail
5+
SHELL := bash -o pipefail
66
VERSION_PACKAGE = github.com/replicatedhq/troubleshoot/pkg/version
77
VERSION ?=`git describe --tags --dirty`
88
DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"`

scripts/host-preflight-integration-test.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
function say() {
44
echo

scripts/initialize-sbom-build.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
set -euo pipefail
44

test/validate-preflight-e2e.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
set -euo pipefail
44

test/validate-support-bundle-e2e.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
set -euo pipefail
44

0 commit comments

Comments
 (0)