Skip to content

Commit 0739817

Browse files
authored
Merge pull request #64 from blinklabs-io/feat/support-network-cli
feat: support auto-select /ipc/node.socket in cli
2 parents 3243deb + b4d28bc commit 0739817

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/run-client

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env bash
22

33
shift
4-
export CARDANO_NODE_SOCKET_PATH=${CARDANO_NODE_SOCKET_PATH:-/opt/cardano/ipc/socket}
4+
if [[ -n ${NETWORK} ]]; then
5+
export CARDANO_NODE_SOCKET_PATH=/ipc/node.socket
6+
else
7+
export CARDANO_NODE_SOCKET_PATH=${CARDANO_NODE_SOCKET_PATH:-/opt/cardano/ipc/socket}
8+
fi
59
/usr/local/bin/cardano-cli ${@}

0 commit comments

Comments
 (0)