Skip to content

Commit 2610780

Browse files
committed
*.sh: use /usr/bin/env to locate bash
On some unconventional systems like NixOS, bash is not installed in /bin/bash and should instead be located via `env`. (Only `/bin/sh` is guaranteed to be present on a POSIX system under `/bin`.) Signed-off-by: Ihar Hrachyshka <[email protected]>
1 parent 356b274 commit 2610780

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

dist/images/daemonset.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
#set -x
33

44
#Always exit on errors

dist/images/ovn-config.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
# run on master to configure ovn-kubernetes
44
# The /etc/openvswitch/ovn_k8s.conf and /etc/sysconfig/ovn-kubernetes

dist/images/ovn-run.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
# run the ovs-vswitchd daemon from a container
44

dist/images/ovndb-raft-functions.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
#set -euo pipefail
33

44
verify-ovsdb-raft() {

dist/images/ovnkube.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
#set -euo pipefail
33

44
# Enable verbose shell output if OVNKUBE_SH_VERBOSE is set to 'true'

dist/images/push_manifest.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
# Currently supported platforms of multi-arch images are: amd64 arm64
44
LINUX_ARCH=(amd64 arm64)

dist/install-ovn-k8s.sh

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

44
SCRIPTS_DIR=$(dirname "${BASH_SOURCE[0]}")

go-controller/hack/build-go.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
set -e
33

44
GO=${GO:-go}

go-controller/hack/init.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
OUT_DIR=${OUT_DIR:-_output}
44

go-controller/hack/regenerate_vendor_mocks.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
workdir=$(cd ../ && pwd)
44
substitute_string='pkg/testing/mocks'

0 commit comments

Comments
 (0)