From 1561e9fc6d2853e7aba42222a407ff46e50664b8 Mon Sep 17 00:00:00 2001 From: Stefan Tatschner Date: Wed, 17 Feb 2016 15:53:11 +0100 Subject: [PATCH] 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. --- config.sh.example | 2 +- hook.sh.example | 2 +- test.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.2