Skip to content

Commit 5235c03

Browse files
env for shebang and add freebsd to install script
Shebang shouldnt hardcode path to /bin/bash since some *nix flavors dont ship with bash or install it in a different path. install-binary.sh which is used by the helm plugin system was updated for a freebsd binary support. This should be functional when the first release for helm-diff is released for freebsd.
1 parent 81dd667 commit 5235c03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install-binary.sh

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

33
# Shamelessly copied from https://github.com/technosophos/helm-template
44

@@ -52,7 +52,7 @@ initOS() {
5252
# verifySupported checks that the os/arch combination is supported for
5353
# binary builds.
5454
verifySupported() {
55-
local supported="linux-amd64\nmacos-amd64\nwindows-amd64"
55+
local supported="linux-amd64\nfreebsd-amd64\nmacos-amd64\nwindows-amd64"
5656
if ! echo "${supported}" | grep -q "${OS}-${ARCH}"; then
5757
echo "No prebuild binary for ${OS}-${ARCH}."
5858
exit 1

0 commit comments

Comments
 (0)