added the default bitcoin path for macos to startup_regtest.sh

[ Neatened shell script a little, removed unwanted submodule update --RR ]
This commit is contained in:
Rene Pickhardt 2021-03-03 09:37:05 +01:00 committed by Rusty Russell
parent 9776e23b83
commit da2ee188f3

View File

@ -54,6 +54,8 @@ fi
if [ -z "$PATH_TO_BITCOIN" ]; then
if [ -d "$HOME/.bitcoin" ]; then
PATH_TO_BITCOIN="$HOME/.bitcoin"
elif [ -d "$HOME/Library/Application Support/Bitcoin/" ]; then
PATH_TO_BITCOIN="$HOME/Library/Application Support/Bitcoin/"
else
echo "\$PATH_TO_BITCOIN not set to a .bitcoin dir?" >&2
return