I have the following init hook which will exit with error code 1
#!/bin/bash
echo "Error. Exiting"
exit 1
When I run this package, following is the output I am getting. How can I stop the "init" hook from running again in case of a failure?
example.default(SR): Initializing
example.default hook[init]:(HK): Error. Exiting
example(HK): Initialization failed! 'init' exited with status code 1
example.default(SR): Initializing
example.default hook[init]:(HK): Error. Exiting
example(HK): Initialization failed! 'init' exited with status code 1
example.default(SR): Initializing
example.default hook[init]:(HK): Error. Exiting
example(HK): Initialization failed! 'init' exited with status code 1
example.default(SR): Initializing
example.default hook[init]:(HK): Error. Exiting
example(HK): Initialization failed! 'init' exited with status code 1
example.default(SR): Initializing
example.default hook[init]:(HK): Error. Exiting