This commit is contained in:
Wang Sen Di
2025-12-09 11:55:44 +08:00
commit 9764b5f968
24 changed files with 597 additions and 0 deletions

9
hook/sleep.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# 需要在执行脚本延时一段时间, 可以调用该脚本...
_t_sleep=$(shuf -i "$2"-"$3" -n 1)
echo "延时:$_t_sleep"
sleep "$_t_sleep"
# 示例
# if [[ "$1" == "sleep" ]]; then source /apps/gitrce/hook/sleep.sh "$0" 1 300; fi