Skip to content

Commit

Permalink
Merge branch 'bengt/build-network-error-69' (#1638)
Browse files Browse the repository at this point in the history
* bengt/build-network-error-69:
  Update build_network.sh
  fix annoying error on line 69
  • Loading branch information
brentstone committed Jul 4, 2023
2 parents d3530e4 + 2013da6 commit cf8ed58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build_network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ check_toml_file() {
section_prefix="validator.validator"
# Search for the section name in the TOML file
section_count=$(awk -F'[][]' -v prefix="$section_prefix" '/^\[.*\]$/ && $2 ~ "^" prefix { count++ } END { print count }' "$toml_file")
if [ ! "$section_count" -eq 0 ]; then
if [ ! "$(expr "$section_count" : '^[0-9]*$')" -eq 0 ]; then
echo "At least one validator ($section_count, in fact) has been found in the toml file. Please delete all occurrences of the section '[$section_prefix]' in the TOML file and try again."
exit 1
fi
Expand Down Expand Up @@ -217,4 +217,4 @@ main() {
package "$@"
}

main "$@"
main "$@"

0 comments on commit cf8ed58

Please sign in to comment.