1
1
mirror of https://github.com/ellie/atuin.git synced 2024-08-17 17:00:33 +03:00

feat: Guard against ancient versions of bash where this does not work. (#1794)

This commit is contained in:
Samson 2024-03-01 06:54:43 -08:00 committed by GitHub
parent fe2bb086f5
commit 515f78fa4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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