Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SpontaneousOverthrow committed Nov 22, 2023
1 parent adccb88 commit bb4f93e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/func-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ jobs:
echo -e "# Updating Paths And Grep Command If Wallet Is Distributed"
if $(echo $input_path | grep "distributed"); then
input_path="$input_path/test1"
if $(echo "${input_path}" | grep "distributed"); then
input_path="${input_path}/test1"
input_grep="Composite public key:"
fi
if $(echo $output_path | grep "distributed"); then
output_path="$output_path/test1"
if $(echo "${output_path}" | grep "distributed"); then
output_path="${output_path}/test1"
ouput_grep="Composite public key:"
fi
Expand All @@ -66,8 +66,10 @@ jobs:
echo -e "# Checking Public Keys"
wallets_list=$(ethdo wallet --base-dir "$input_path" | tr '\n' ' ')
for w in wallets_list; do
echo -e "# Checking Wallet $w"
accounts=$(ethdo wallet --base-dir "$input_path" accounts --wallet="$w" | tr '\n' ' ')
for a in $accounts; do
echo -e "# Checking Wallet $a"
input_key=$(ethdo account --base-dir "$input_path" info --account "$w/$a" | grep -i "$input_grep" | awk '{print $NF}')
output_key=$(ethdo account --base-dir "$output_path" info --account "$w/$a" | grep -i "$output_grep" | awk '{print $NF}')
if [[ $input_key != $output_key ]]; then
Expand All @@ -76,7 +78,7 @@ jobs:
fi
echo -e "Account [$w/$a]: ${green}OK${nc}"
done;
echo -e "Account [$w]: ${green}OK${nc}"
echo -e "Wallet [$w]: ${green}OK${nc}"
done;
env:
red: '\033[0;31m'
Expand Down

0 comments on commit bb4f93e

Please sign in to comment.