NetAppDocs / NetAppDocs/trident

Example `hookSource` incorrectly uses Bash instead of `sh`

Open
#906 0 comments 0 reactions 1 assignee View on GitHub

@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:

https://github.com/NetAppDocs/trident/blob/b0d5f95844a49792a1e6e70c6b93c6241943aef5/trident-protect/trident-protect-use-execution-hooks.adoc?plain=1#L126

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.