Open rexi1e opened 5 months ago
Cannot get any hooks to fire.
gopass setup
~/.config/gopass/config
core.post-hook: /full/path/to/script.sh
gopass show
When the config specifies a script for a particular function, that script should run every time that function runs.
Tried variants of the key/hook and property such as:
core.post-hook: /full/path/to/script.sh core.post-hook: bash /full/path/to/script.sh core.post-hook: <command> show.post-hook: ...
core.post-hook: bash /full/path/to/script.sh
core.post-hook: <command>
show.post-hook: ...
Also tried:
https://github.com/gopasspw/gopass/blob/master/docs/config.md#configuration-precedence
I know config file was being read because:
GOPASS_DEBUG=true
core.cliptimeout = 30
Yes, that was me: https://github.com/gopasspw/gopass/blob/master/internal/hook/hook.go#L37
I have disable global hooks since I wasn't sure about potential attack vectors.
Summary
Cannot get any hooks to fire.
Steps To Reproduce
gopass setup
.~/.config/gopass/config
, such ascore.post-hook: /full/path/to/script.sh
gopass show
...the command works but the specified script is never run.Expected behavior
When the config specifies a script for a particular function, that script should run every time that function runs.
Environment
Additional context
Tried variants of the key/hook and property such as:
core.post-hook: /full/path/to/script.sh
core.post-hook: bash /full/path/to/script.sh
core.post-hook: <command>
show.post-hook: ...
Also tried:
https://github.com/gopasspw/gopass/blob/master/docs/config.md#configuration-precedence
)I know config file was being read because:
GOPASS_DEBUG=true
core.cliptimeout = 30
)