summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/common4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/common b/etc/common
index eae394e..6a8d7a2 100644
--- a/etc/common
+++ b/etc/common
@@ -133,8 +133,8 @@ error () {
# needs array variable HOOK setup with HOOKNR being a number an HOOKSCR
# the script to run.
hook () {
- ARGS="HOOK[*]"
- local ${!ARGS}
+ ARGS='HOOK[@]'
+ local "${!ARGS}"
if [ -n "${HOOKSCR}" ]; then
log "Running hook $HOOKNR: ${HOOKSCR}"
set +e