Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/plugins/gogs/hook/self_hook.tpl

14 lines
258 B

2 years ago
#!/bin/bash
2 years ago
H_DIR={$HOOK_DIR}
HL_DIR={$HOOK_LOGS_DIR}
2 years ago
SH_LIST=`cd ${H_DIR} && ls | grep ".sh$"`
2 years ago
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