summaryrefslogtreecommitdiff
path: root/bin/bash_shared/functions.sh
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2016-08-13 20:25:34 +0200
committerYehonal <yehonal.azeroth@gmail.com>2016-08-13 20:32:21 +0200
commitff6201921c7da018ec200ca52ed023e92c83f747 (patch)
treebe1b9a1b8376841b88c46b4c360e842b66cfd49c /bin/bash_shared/functions.sh
parent86fc3b01f4867e28b58c07e2f86506f0549e3587 (diff)
created hw-core bash libraries
will be traited as a git subtree
Diffstat (limited to 'bin/bash_shared/functions.sh')
-rw-r--r--bin/bash_shared/functions.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/bin/bash_shared/functions.sh b/bin/bash_shared/functions.sh
deleted file mode 100644
index 6da557adea..0000000000
--- a/bin/bash_shared/functions.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-# par 1: hook_name
-function runHooks() {
- hook_name="HOOKS_MAP_$1"
- read -r -a SRCS <<< ${!hook_name}
- echo "Running hooks: $hook_name"
- for i in "${SRCS[@]}"
- do
- $i # run registered hook
- done
-}
-
-function registerHooks() {
- hook_name="HOOKS_MAP_$1"
- hooks=${@:2}
- declare -g "$hook_name+=$hooks "
-}