Skip to content

Commit

Permalink
fix checks when there is only one wallet file
Browse files Browse the repository at this point in the history
  • Loading branch information
openoms committed May 13, 2021
1 parent 10cbd2a commit 21f5af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/start.joininbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ elif [ "$(ls -p /home/joinmarket/.joinmarket/wallets/ | grep -cv /)" -eq 1 ];the
onlyWallet=$(ls -p /home/joinmarket/.joinmarket/wallets/ | grep -v /)
echo "# Found only one wallet file: $onlyWallet"
echo "# Using it as default"
sed -i "s#^defaultWallet=.*#defaultWallet=$onlyWallet#g" $joininConfPath
sed -i "s#^defaultWallet=.*#defaultWallet=/home/joinmarket/.joinmarket/wallets/$onlyWallet#g" $joininConfPath
fi

# add default value to joinin config if needed
Expand Down

0 comments on commit 21f5af1

Please sign in to comment.