NetAppDocs / NetAppDocs/trident
Example `hookSource` incorrectly uses Bash instead of `sh`
@netapp-shwetav is already working on this.
Since Sep 10, 2026.
- Dominant language
- No language data
- Stars
- 1
- Forks
- 22
- Avg merge
- 36m
- Merged PRs (30d)
- 8
Description
Page URL
https://docs.netapp.com/us-en/trident/trident-protect/trident-protect-use-execution-hooks.html
Page title
Manage Trident Protect execution hooks
Summary
The ExecHook example uses an invalid hookSource:
The script is IyEvYmluL2Jhc2gKZWNobyAiZXhhbXBsZSBzY3JpcHQiCg== which decodes to this script:
#!/bin/bash
echo "example script"
This indicates that Bash should be used to execute the script, while the ExecHook will actually invoke the script using sh. I found this out by some long bouts with trial and error when I found out that my documented examples did not work as expected.
This should be changed to something like #!/usr/bin/env sh for correctness.
Public issues must not contain sensitive information
- This issue contains no sensitive information.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.