From 515f78fa4c0b9fc95e3204ff53c332780a092bc2 Mon Sep 17 00:00:00 2001 From: Samson Date: Fri, 1 Mar 2024 06:54:43 -0800 Subject: [PATCH] feat: Guard against ancient versions of bash where this does not work. (#1794) --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 4f8958a2..be49a931 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,10 @@ #! /usr/bin/env bash +if [[ "${BASH_VERSION%%.*}" -eq 3 ]]; then + echo "Atuin has limited support for Bash 3.2. The Atuin config enter_accept cannot be turned off." >&2 + echo "To turn off enter_accept, please upgrade your version of bash (possibly via homebrew or ports)" >&2 +fi + set -euo pipefail cat << EOF