Skip to content

Commit

Permalink
scripts: complain about bash version only when new bash is really needed
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabobko committed Jul 27, 2024
1 parent 0296db1 commit 65b2144
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions build-shell-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ rm -rf .shell-completion && mkdir -p \
--fish-script .shell-completion/fish/aerospace.fish 2>&1 \
--bash-script .shell-completion/bash/aerospace 2>&1

if ! (bash --version | grep -q 'version 5'); then
echo "bash version is too old. At least version 5 is required" > /dev/stderr
exit 1
fi

# Check basic syntax
zsh -c 'autoload -Uz compinit; compinit; source ./.shell-completion/zsh/_aerospace'
fish -c 'source ./.shell-completion/fish/aerospace.fish'
Expand Down
5 changes: 0 additions & 5 deletions script/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ if [ -z "${SETUP_SH:-}" ]; then
setup
fi

if ! (bash --version | grep -q 'version 5'); then
echo "bash version is too old. At least version 5 is required" > /dev/stderr
exit 1
fi

xcodebuild() {
# Mute stderr
# 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
Expand Down

0 comments on commit 65b2144

Please sign in to comment.