chore: update repo sync apth
This commit is contained in:
@@ -130,10 +130,8 @@ func ParseRepoScriptsAndAddCron(taskID string, logWriter io.Writer, forceComment
|
|||||||
displayPath := path
|
displayPath := path
|
||||||
displayWorkDir := targetPath
|
displayWorkDir := targetPath
|
||||||
if strings.HasPrefix(absPath, absScriptsDir) {
|
if strings.HasPrefix(absPath, absScriptsDir) {
|
||||||
displayPath = filepath.ToSlash(filepath.Join("$SCRIPTS_DIR$", relPath))
|
displayPath = filepath.ToSlash(relPath)
|
||||||
// 获取目录路径
|
displayWorkDir = "$SCRIPTS_DIR$"
|
||||||
relDir, _ := filepath.Rel(absScriptsDir, filepath.Dir(absPath))
|
|
||||||
displayWorkDir = filepath.ToSlash(filepath.Join("$SCRIPTS_DIR$", relDir))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 找到任务,进行保存
|
// 找到任务,进行保存
|
||||||
|
|||||||
Reference in New Issue
Block a user