修改ql repo逻辑

This commit is contained in:
whyour
2021-11-09 23:07:43 +08:00
parent 0ca640acbd
commit ab5ab951d7
2 changed files with 21 additions and 14 deletions
+7
View File
@@ -78,12 +78,15 @@ run_nohup() {
run_normal() {
local first_param=$1
cd $dir_scripts
local relative_path="${first_param%/*}"
[[ ! -z ${relative_path} ]] && cd ${relative_path}
define_program "$first_param"
if [[ $first_param == *.js ]]; then
if [[ $# -eq 1 ]]; then
random_delay
fi
fi
log_time=$(date "+%Y-%m-%d-%H-%M-%S")
log_dir_tmp="${first_param##*/}"
log_dir="$dir_log/${log_dir_tmp%%.*}"
@@ -136,6 +139,8 @@ run_concurrent() {
local cookieStr=$(echo ${array_run[*]} | sed 's/\ /\&/g')
cd $dir_scripts
local relative_path="${first_param%/*}"
[[ ! -z ${relative_path} ]] && cd ${relative_path}
define_program "$first_param"
log_time=$(date "+%Y-%m-%d-%H-%M-%S")
log_dir_tmp="${first_param##*/}"
@@ -191,6 +196,8 @@ run_designated() {
fi
cd $dir_scripts
local relative_path="${first_param%/*}"
[[ ! -z ${relative_path} ]] && cd ${relative_path}
define_program "$file_param"
log_time=$(date "+%Y-%m-%d-%H-%M-%S")
log_dir_tmp="${file_param##*/}"