10 lines
258 B
Bash
Executable File
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
|