summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamson <samson_gh@onepatchdown.net>2024-03-01 06:54:43 -0800
committerGitHub <noreply@github.com>2024-03-01 14:54:43 +0000
commit515f78fa4c0b9fc95e3204ff53c332780a092bc2 (patch)
tree747b1dee233d6e9627cdc8cb591bce57e71d79ad
parentfe2bb086f514ad80c9569f6e931560b0bd5aeebc (diff)
feat: Guard against ancient versions of bash where this does not work. (#1794)
-rwxr-xr-xinstall.sh5
1 files changed, 5 insertions, 0 deletions
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