Skip to content

Commit

Permalink
feat: multiline command
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Ramon Mañes <jose@celestia.org>
  • Loading branch information
tty47 committed Jun 23, 2023
1 parent 3b6f83a commit ac6e6ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/k8s/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (
var (
trustedPeerFile = "/tmp/TP-ADDR"
trustedPeers = "/tmp/"
trustedPeerPrefix = "/ip4/$(ip_addr=$(ifconfig | grep -oE 'inet addr:([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)' | grep -v '127.0.0.1' | awk '{print substr($2, 6)}'))/tcp/2121/p2p/"
cmd = `$(ifconfig | grep -oE 'inet addr:([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)' | grep -v '127.0.0.1' | awk '{print substr($2, 6)}')`
trustedPeerPrefix = "/ip4/" + cmd + "/tcp/2121/p2p/"
)

func GetTrustedPeersPath(cfg config.MutualPeer) string {
Expand Down

0 comments on commit ac6e6ee

Please sign in to comment.