打包生成的文件名修改为gocron-os-arch

pull/21/merge
ouqiang 8 years ago
parent 29e4daaf93
commit 333049206f

@ -61,10 +61,10 @@ echo '编译完成'
if [[ $OS = 'windows' ]];then
EXEC_NAME=${APP_NAME}.exe
COMPRESS_FILE=${APP_NAME}.zip
COMPRESS_FILE=${APP_NAME}-${OS}-${ARCH}.zip
else
EXEC_NAME=${APP_NAME}
COMPRESS_FILE=${APP_NAME}.tar.gz
COMPRESS_FILE=${APP_NAME}-${OS}-${ARCH}.tar.gz
fi
mkdir -p $TEMP_DIR/$APP_NAME

@ -153,7 +153,7 @@ func Store(ctx *macaron.Context, form TaskForm) string {
if taskModel.Protocol == models.TaskHTTP && taskModel.Timeout == -1 {
return json.CommonFailure("HTTP任务不支持后台运行", err)
}
if taskModel.RetryTimes > 10 || taskModel < 0 {
if taskModel.RetryTimes > 10 || taskModel.RetryTimes < 0 {
return json.CommonFailure("任务重试次数取值0-10")
}
if id == 0 {

Loading…
Cancel
Save