Browse Source

Clarify saturnin__wraphook() docstring

Alois Mahdal 7 years ago
parent
commit
e617c5b27f
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/saturnin.sh.skel

+ 4
- 4
src/saturnin.sh.skel View File

371
 
371
 
372
 saturnin__wraphook() {
372
 saturnin__wraphook() {
373
     #
373
     #
374
-    # Wrap command "$@" in hooks
374
+    # Wrap command $@ in hooks 'pre' and 'post'
375
     #
375
     #
376
-    # Run pre hook, then "$@", then post hook.  Always exit
377
-    # with status of "$@", even if hooks fail.  Ignore
378
-    # post-hook if "$@" failed.
376
+    # Run pre hook, then command $@, then post hook.  Always exit with
377
+    # status of the payload command, even if hooks fail.  Ignore post-hook
378
+    # if payload command failed.
379
     #
379
     #
380
     local es=0
380
     local es=0
381
     saturnin__runhook pre
381
     saturnin__runhook pre