This commit is contained in:
Wang Sen Di
2025-12-08 16:54:08 +08:00
parent 5ffafb5923
commit f09a253fb1
23 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