Files
251208-biz-u-dx/hook/sleep.sh
Wang Sen Di d5968af95c -
2025-12-10 10:23:00 +08:00

10 lines
258 B
Bash
Executable File

#!/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