mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-11 08:59:26 +08:00
14 lines
258 B
Smarty
14 lines
258 B
Smarty
#!/bin/bash
|
|
|
|
H_DIR={$HOOK_DIR}
|
|
HL_DIR={$HOOK_LOGS_DIR}
|
|
|
|
|
|
SH_LIST=`cd ${H_DIR} && ls | grep ".sh$"`
|
|
|
|
for sh_f in $SH_LIST; do
|
|
ABS_FILE=${H_DIR}/${sh_f}
|
|
ABS_LOGS=${HL_DIR}/${sh_f}.log
|
|
echo "sh ${ABS_FILE} 2>${ABS_LOGS}"
|
|
sh -x ${ABS_FILE} 2>${ABS_LOGS}
|
|
done |