Skip to content

Commit 65b2144

Browse files
committed
scripts: complain about bash version only when new bash is really needed
1 parent 0296db1 commit 65b2144

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

build-shell-completion.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ rm -rf .shell-completion && mkdir -p \
1414
--fish-script .shell-completion/fish/aerospace.fish 2>&1 \
1515
--bash-script .shell-completion/bash/aerospace 2>&1
1616

17+
if ! (bash --version | grep -q 'version 5'); then
18+
echo "bash version is too old. At least version 5 is required" > /dev/stderr
19+
exit 1
20+
fi
21+
1722
# Check basic syntax
1823
zsh -c 'autoload -Uz compinit; compinit; source ./.shell-completion/zsh/_aerospace'
1924
fish -c 'source ./.shell-completion/fish/aerospace.fish'

script/setup.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ if [ -z "${SETUP_SH:-}" ]; then
3636
setup
3737
fi
3838

39-
if ! (bash --version | grep -q 'version 5'); then
40-
echo "bash version is too old. At least version 5 is required" > /dev/stderr
41-
exit 1
42-
fi
43-
4439
xcodebuild() {
4540
# Mute stderr
4641
# 2024-02-12 23:48:11.713 xcodebuild[60777:7403664] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22269/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103

0 commit comments

Comments
 (0)