mirror of
https://github.com/ellie/atuin.git
synced 2024-09-11 21:18:22 +03: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
|
#! /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
|
set -euo pipefail
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user