mirror of
				https://github.com/whyour/qinglong.git
				synced 2025-10-30 16:36:07 +08:00 
			
		
		
		
	添加默认定时规则配置
This commit is contained in:
		
							parent
							
								
									4d99695e4c
								
							
						
					
					
						commit
						fb0c1c6993
					
				|  | @ -10,6 +10,9 @@ AutoDelCron="true" | ||||||
| ## 在运行 ql repo 命令时,是否自动增加新的本地定时任务 | ## 在运行 ql repo 命令时,是否自动增加新的本地定时任务 | ||||||
| AutoAddCron="true" | AutoAddCron="true" | ||||||
| 
 | 
 | ||||||
|  | ## 拉取脚本时默认的定时规则,当匹配不到定时规则时使用,例如: 0 9 * * * | ||||||
|  | DefaultCronRule="" | ||||||
|  | 
 | ||||||
| ## ql repo命令拉取脚本时需要拉取的文件后缀,直接写文件后缀名即可 | ## ql repo命令拉取脚本时需要拉取的文件后缀,直接写文件后缀名即可 | ||||||
| RepoFileExtensions="js py" | RepoFileExtensions="js py" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -65,7 +65,12 @@ import_config() { | ||||||
|     command_timeout_time=${CommandTimeoutTime:-"1h"} |     command_timeout_time=${CommandTimeoutTime:-"1h"} | ||||||
|     github_proxy_url=${GithubProxyUrl:-""} |     github_proxy_url=${GithubProxyUrl:-""} | ||||||
|     file_extensions=${RepoFileExtensions:-"js py"} |     file_extensions=${RepoFileExtensions:-"js py"} | ||||||
|  | 
 | ||||||
|  |     if [[ -n "${DefaultCronRule}" ]]; then | ||||||
|  |         default_cron="${DefaultCronRule}" | ||||||
|  |     else | ||||||
|         default_cron="$(random_range 0 59) $(random_range 0 23) * * *" |         default_cron="$(random_range 0 59) $(random_range 0 23) * * *" | ||||||
|  |     fi | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| make_dir() { | make_dir() { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 hanhh
						hanhh