MyHush / hush3

Hush: Speak And Transact Freely
https://myhush.org
Other
15 stars 13 forks source link

Fix hushd to work when called via symlink #4

Closed lukechilds closed 5 years ago

lukechilds commented 5 years ago

If you symlink hushd to /usr/local/bin and then call hushd, dirname "${BASH_SOURCE[0]}" will resolve to the symlinked DIR (/usr/local/bin).

That means inside the script ./komodod will resolve to /usr/local/bin/komodod which will likely be upstream komodod not the HUSH3 fork of komodod.

leto commented 5 years ago

@lukechilds first hush3 PR! Send me an address and I will send a tip.

Thank you!

lukechilds commented 5 years ago

You can use my NN address: RPxsaGNqTKzPnbm5q7QXwu7b6EZWuLxJG3

Cheers! 🍻