From 0ea428bab5e9bd8836168850f33e885c54d4c112 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Sat, 6 Jan 2018 12:35:33 +1100 Subject: Use /usr/bin/env to locate bash On some systems (e.g. macOS), the bash provided by the system at `/bin/bash` is not new enough for the bootstrap script, while users may install a bash instance elsewhere. In that case, `/usr/bin/env` can get the bash in the current environment. diff --git a/bootstrap b/bootstrap index e497467..a71a2b0 100755 --- a/bootstrap +++ b/bootstrap @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "${BASH_VERSINFO[0]}" -lt 4 ]; then echo "Your BASH shell version (${BASH_VERSION}) is too old." >&2 -- cgit v0.10.2-6-g49f6