Browse Source
Fix lncli and bitcoin-cli wrapper scripts (#388)
Co-authored-by: Luke Childs <lukechilds123@gmail.com>
dashboard-0.3.15
Aaron Dewes
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
2 deletions
-
bin/bitcoin-cli
-
bin/lncli
|
|
@ -4,7 +4,10 @@ set -euo pipefail |
|
|
|
|
|
|
|
UMBREL_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/..)" |
|
|
|
|
|
|
|
result=$(docker-compose --file "${UMBREL_ROOT}/docker-compose.yml" exec bitcoin bitcoin-cli $@) |
|
|
|
result=$(docker-compose \ |
|
|
|
--file "${UMBREL_ROOT}/docker-compose.yml" \ |
|
|
|
--env-file "${UMBREL_ROOT}/.env" \ |
|
|
|
exec bitcoin bitcoin-cli $@) |
|
|
|
|
|
|
|
# We need to echo with quotes to preserve output formatting |
|
|
|
echo "$result" |
|
|
|
|
|
@ -4,7 +4,10 @@ set -euo pipefail |
|
|
|
|
|
|
|
UMBREL_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/..)" |
|
|
|
|
|
|
|
result=$(docker-compose --file "${UMBREL_ROOT}/docker-compose.yml" exec lnd lncli $@) |
|
|
|
result=$(docker-compose \ |
|
|
|
--file "${UMBREL_ROOT}/docker-compose.yml" \ |
|
|
|
--env-file "${UMBREL_ROOT}/.env" \ |
|
|
|
exec lnd lncli $@) |
|
|
|
|
|
|
|
# We need to echo with quotes to preserve output formatting |
|
|
|
echo "$result" |
|
|
|