Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
BUG: fix +general parsing of ifconfig (II)
Browse files Browse the repository at this point in the history
  • Loading branch information
lacabra committed Nov 29, 2018
1 parent 4fcbbf4 commit d080fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enigma-contract/wrapper.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
export CONTRACT_IP=`/sbin/ifconfig eth0 | awk '/inet / {gsub("(addr:)?", "", $2); print $2}'
export CONTRACT_IP=`/sbin/ifconfig eth0 | awk '/inet / {gsub("(addr:)?", "", $2); print $2}'`
echo "My IP address is " $CONTRACT_IP
sed -i'' -e ':a;N;$!ba;' -e "s/ganache: {[^}]*}/ganache: { host: \"$CONTRACT_IP\", port: 8545, network_id: \"*\"}/" ~/enigma-contract/truffle.js
cd ~/enigma-contract && ganache-cli -h $CONTRACT_IP

0 comments on commit d080fbd

Please sign in to comment.