Closed lukechilds closed 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).
hushd
/usr/local/bin
dirname "${BASH_SOURCE[0]}"
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.
./komodod
/usr/local/bin/komodod
komodod
@lukechilds first hush3 PR! Send me an address and I will send a tip.
Thank you!
You can use my NN address: RPxsaGNqTKzPnbm5q7QXwu7b6EZWuLxJG3
RPxsaGNqTKzPnbm5q7QXwu7b6EZWuLxJG3
Cheers! 🍻
If you symlink
hushd
to/usr/local/bin
and then callhushd
,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 upstreamkomodod
not the HUSH3 fork ofkomodod
.