Skip to content

Commit

Permalink
fix edge cases for duplicate wt uris (#77)
Browse files Browse the repository at this point in the history
Co-authored-by: Dread <[email protected]>
  • Loading branch information
islandbitcoin and Dread authored Aug 31, 2022
1 parent 16b06b6 commit b2529ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion actions/add-watchtower.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ if $WT_CLIENT ; then
echo $action_result_error
else
echo $action_result_running
sed -i "s/add-watchtowers:.*/add-watchtowers:\n - $WT_URI/" /root/.lnd/start9/config.yaml
export EXISTING_WT=$(grep $WT_URI /root/.lnd/start9/config.yaml)
if ! [ $EXISTING_WT == $WT_URI ]; then
sed -i "s/add-watchtowers:.*/add-watchtowers:\n - >-\n $WT_URI/" /root/.lnd/start9/config.yaml
fi
fi

else
Expand Down

0 comments on commit b2529ee

Please sign in to comment.