Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: bash version checks
  • Loading branch information
lloydchang committed Dec 2, 2024
commit b4fe2ec17c13cc8ab2528def900e4633a38331d2
2 changes: 1 addition & 1 deletion scripts/codespaces_create_and_start_containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set -x # Print each command before executing it (useful for debugging)

cd $(dirname $0)

bash_version=$(/bin/bash --version | head -n 1 | awk '{print $4}' | cut -d. -f1,2)
bash_version=$(/bin/bash --version | head -n 1 | awk '{print $4}' | cut -d. -f1)

if (( bash_version < 5 )); then
echo 'Error: Requires Bash version 5 or higher.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -x # Print each command before executing it (useful for debugging)

cd $(dirname $0)

bash_version=$(/bin/bash --version | head -n 1 | awk '{print $4}' | cut -d. -f1,2)
bash_version=$(/bin/bash --version | head -n 1 | awk '{print $4}' | cut -d. -f1)

if (( bash_version < 5 )); then
echo 'Error: Requires Bash version 5 or higher.'
Expand Down
2 changes: 1 addition & 1 deletion scripts/mac_start_hackingbuddygpt_against_a_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -x # Print each command before executing it (useful for debugging)

cd $(dirname $0)

bash_version=$(/bin/bash --version | head -n 1 | awk '{print $4}' | cut -d. -f1,2)
bash_version=$(/bin/bash --version | head -n 1 | awk '{print $4}' | cut -d. -f1)

if (( bash_version < 3 )); then
echo 'Error: Requires Bash version 3 or higher.'
Expand Down