From: Stefan Tatschner Date: Wed, 17 Feb 2016 14:53:11 +0000 (+0100) Subject: Use /usr/bin/env bash shebang X-Git-Tag: v0.1.0~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1561e9fc6d2853e7aba42222a407ff46e50664b8;p=thirdparty%2Fdehydrated.git Use /usr/bin/env bash shebang 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. --- diff --git a/config.sh.example b/config.sh.example index 40ac854..471339c 100644 --- a/config.sh.example +++ b/config.sh.example @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ######################################################## # This is the main config file for letsencrypt.sh # diff --git a/hook.sh.example b/hook.sh.example index 8e8d564..6aee5f1 100644 --- a/hook.sh.example +++ b/hook.sh.example @@ -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 3e23f06..c673372 100755 --- a/test.sh +++ b/test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Fail early set -eu -o pipefail