Kaynağa Gözat

Be more informative about saturnin__runhook()

Alois Mahdal 7 yıl önce
ebeveyn
işleme
3b0b91d3b5
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4
    1
      src/saturnin.sh.skel

+ 4
- 1
src/saturnin.sh.skel Dosyayı Görüntüle

@@ -310,7 +310,10 @@ saturnin__conf_mkpath() {
310 310
 
311 311
 saturnin__runhook() {
312 312
     #
313
-    # Run custom hook
313
+    # Run custom hook named $1 from respective configuration section
314
+    #
315
+    # Will load joined multi-line key "hook.$SATURNIN_SUBCOMMAND.$1",
316
+    # and execute it as Bash code.
314 317
     #
315 318
     local hname="$1"
316 319
     local hook_code