From d185428d8174fadf644e978d65311f54a7a6d4a6 Mon Sep 17 00:00:00 2001 From: bengtlofgren Date: Sun, 2 Jul 2023 13:52:18 +0200 Subject: [PATCH 1/2] fix annoying error on line 69 --- scripts/build_network.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build_network.sh b/scripts/build_network.sh index b6c1de04be..23a1ba24c2 100755 --- a/scripts/build_network.sh +++ b/scripts/build_network.sh @@ -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 @@ -217,4 +217,5 @@ main() { package "$@" } + main "$@" \ No newline at end of file From 2013da63401168cffb889ddc7ab05f2510f7a952 Mon Sep 17 00:00:00 2001 From: Bengt Lofgren <51077282+bengtlofgren@users.noreply.github.com> Date: Mon, 3 Jul 2023 03:17:45 -0600 Subject: [PATCH 2/2] Update build_network.sh remove extra line --- scripts/build_network.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/build_network.sh b/scripts/build_network.sh index 23a1ba24c2..7eeac2d741 100755 --- a/scripts/build_network.sh +++ b/scripts/build_network.sh @@ -217,5 +217,4 @@ main() { package "$@" } - -main "$@" \ No newline at end of file +main "$@"