Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- validator_file='validator.txt'
- first_key=$(head -n1 "$validator" | tr -d '\n')
- second_key=$(head -n2 "$validator" | tail -n1 | tr -d '\n')
- go_file='go_file.go'
- sed -ie "s/INITROOTPUBKEY1 = .*/INITROOTPUBKEY1 = \"$first_key\"" "$go_file"
- sed -ie "s/INITROOTPUBKEY1 = .*/INITROOTPUBKEY1 = \"$first_key\"" "$go_file"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement