mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-07 17:04:51 +01:00
feat: Guard against ancient versions of bash where this does not work. (#1794)
This commit is contained in:
parent
fe2bb086f5
commit
515f78fa4c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user