__trellis_cli_hook:5: no such file or directory: /usr/local/bin/trellis

Just updated Trellis to canary and when running git commands within an older project started getting the warning:

__trellis_cli_hook:5: no such file or directory: /usr/local/bin/trellis

Cmd example:

git merge master
__trellis_cli_hook:5: no such file or directory: /usr/local/bin/trellis
Updating bla bla bla...
__trellis_cli_hook:5: no such file or directory: /usr/local/bin/trellis

I see that we borrow the Shopify hookbook shell script (here) and add the hook in this script.

Hookbook provides a way to register multiple “DEBUG” hooks in bash, and their equivalents in zsh.

The warning seems to have gone away on its own and I wonder if the error occurred because /usr/local/bin/trellis was briefly in not present as part of the update process. It is certainly there now.

Adding the post in case future me or anyone else comes across this warning and certainly welcome further insight (as always).

1 Like