mirror of
https://github.com/Retropex/umbrel-bitcoin.git
synced 2025-05-12 11:10:48 +02:00
15 lines
291 B
Bash
Executable File
15 lines
291 B
Bash
Executable File
#!/opt/homebrew/bin/bash bash
|
|
|
|
CORE_PORT=8333
|
|
CORE_RPCPORT=8332
|
|
|
|
arguments=""
|
|
for env in "${!CORE_@}"
|
|
do
|
|
value=${!env}
|
|
uppercase_flag=${env#CORE_}
|
|
lowercase_flag=${uppercase_flag,,}
|
|
arguments="${arguments} -${lowercase_flag,,}=${!env}"
|
|
done
|
|
echo $arguments
|
|
# -port=8333 -rpcport=8332 |