Skip to content

Commit ebb1185

Browse files
committed
Fix: MacOS needs bash 5.x from homebrew
1 parent bc3e21b commit ebb1185

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

docs/source/running.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ Before running the setup script, you need:
2222
- The script must run from a WSL2 terminal (Ubuntu, Debian, etc.)
2323
- Do not use PowerShell or Command Prompt
2424

25+
- **bash** (Linux and macOS have this by default, but...)
26+
27+
- The script uses features of bash introduced in version 5.0 so make sure you have a compatible version (Linux typically has this, macOS may require installing a newer version via Homebrew)
28+
2529
**Optional:**
2630

2731
- **Git** - Only needed if you want to clone book repositories

init_runestone.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,12 @@ validate_prerequisites() {
463463
print_header "Validating Prerequisites"
464464

465465
detect_platform
466+
BASH_VERSION=$(bash --version | head -n 1 | awk '{print $4}')
467+
if [[ "$BASH_VERSION" < "5.0" ]]; then
468+
print_warning "You are using an old version of Bash ($BASH_VERSION). It is recommended to install a newer version via Homebrew: brew install bash then rerun the script with the new bash: /usr/local/bin/bash init_runestone.sh"
469+
exit
470+
fi
471+
466472
check_docker
467473
check_docker_compose
468474
check_docker_group

0 commit comments

Comments
 (0)