mirror of
https://github.com/logos-messaging/logos-messaging-simulator.git
synced 2026-01-09 09:23:08 +00:00
15 lines
362 B
Bash
15 lines
362 B
Bash
#!/bin/sh
|
|
|
|
# Install json parser
|
|
apk update
|
|
apk add jq
|
|
|
|
# Read the JSON file
|
|
json_content=$(cat anvil-config.txt)
|
|
|
|
# Extract private_keys array values using jq
|
|
private_keys=$(echo "$json_content" | jq -r '.private_keys[]')
|
|
|
|
# Write private keys to a new file for easier indexing
|
|
echo "Writing private keys to file"
|
|
echo "$private_keys" > /shared/private-keys.txt |