]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
Use /usr/bin/env bash shebang 143/head
authorStefan Tatschner <rumpelsepp@sevenbyte.org>
Wed, 17 Feb 2016 14:53:11 +0000 (15:53 +0100)
committerStefan Tatschner <rumpelsepp@sevenbyte.org>
Wed, 17 Feb 2016 14:53:11 +0000 (15:53 +0100)
On FreeBSD bash is installed in /usr/local/bin; this patch
alters the shebang to use /usr/bin/env bash instead, to ensure
that the shell scripts work on (particularly) the *BSDs as well.

config.sh.example
hook.sh.example
test.sh

index 40ac854707549f66c0f525440e0a9a660f93359a..471339c2c4884609b2be4ad5e4cd5d0ec8bb9054 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ########################################################
 # This is the main config file for letsencrypt.sh      #
index 8e8d56486b3680f58fe72eaff4ba26da4ca02061..6aee5f19faeb31a6a087e75f01f6d3b795aba030 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 function deploy_challenge {
     local DOMAIN="${1}" TOKEN_FILENAME="${2}" TOKEN_VALUE="${3}"
diff --git a/test.sh b/test.sh
index 3e23f065eac80df9240fc7002c07a8d23a299ab7..c673372fa19b62eedcf205b279eb51c4feba15a0 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Fail early
 set -eu -o pipefail