Skip to content

Commit

Permalink
feat: Guard against ancient versions of bash where this does not work. (
Browse files Browse the repository at this point in the history
  • Loading branch information
fragmede authored Mar 1, 2024
1 parent fe2bb08 commit 515f78f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 515f78f

Please sign in to comment.