Skip to content

Commit

Permalink
Parse numbers in operator config (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev authored Aug 23, 2024
1 parent 65dc414 commit 4a56d76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions operator/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ create_operator_config() {
rm -f "${raw_json_config_file}" "${modified_json_config_file}"
}

# Parses numbers between quotes into integers
parse_numbers_in_operator_config() {
echo "[INFO] Parsing numbers in the operator config..."
sed -i "s/'\([0-9]\+\)'/\1/g" "${NODE_CONFIG_FILE}"
}

start_operator() {
echo "[INFO] Starting SSV operator..."

Expand Down Expand Up @@ -145,6 +151,7 @@ main() {
handle_private_key
post_pubkey_to_dappmanager
create_operator_config
parse_numbers_in_operator_config
start_operator
}

Expand Down

0 comments on commit 4a56d76

Please sign in to comment.