Skip to content

Commit

Permalink
style: increase readability at bash version check
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivladbrg committed Dec 14, 2023
1 parent 083d6d7 commit ab75061
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shell/deploy-multi-chains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ fi

# Check: required Bash >=4.0.0 for associative arrays
if ((BASH_VERSINFO[0] < 4)); then
echo -e "${EC}Error:\nThis script requires Bash version 4.0.0 or higher.\nYou are currently using Bash version ${BASH_VERSINFO[0]}.${BASH_VERSINFO[1]}.${BASH_VERSINFO[2]}.\nPlease upgrade your Bash version and try again.${NC}"
echo -e "${EC}Error:\nThis script requires Bash version 4.0.0 or higher.
\nYou are currently using Bash version ${BASH_VERSINFO[0]}.${BASH_VERSINFO[1]}.${BASH_VERSINFO[2]}.
\nPlease upgrade your Bash version and try again.${NC}"
exit 1
fi

Expand Down

0 comments on commit ab75061

Please sign in to comment.