From b48eae8ce71049e7cac36a3d4516d05f9a4e89fd Mon Sep 17 00:00:00 2001 From: iuhoay Date: Fri, 3 Mar 2023 09:34:44 +0800 Subject: [PATCH] docs(file-manage): The file in File manage is a relative path, not an absolute path (#13641) --- docs/docs/en/guide/resource/file-manage.md | 6 +++--- docs/docs/zh/guide/resource/file-manage.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs/en/guide/resource/file-manage.md b/docs/docs/en/guide/resource/file-manage.md index bef0a8019b..31caf49e08 100644 --- a/docs/docs/en/guide/resource/file-manage.md +++ b/docs/docs/en/guide/resource/file-manage.md @@ -57,11 +57,11 @@ Create a shell file, print `hello world`. In the workflow definition module of project Manage, create a new workflow using a shell task. -- Script: 'sh hello.sh' -- Resource: Select 'hello.sh' +- Script: 'sh resource/hello.sh' +- Resource: Select 'resource/hello.sh' > Notice: When using a resource file in the script, the file name needs to be the same as the full path of the selected resource: -> For example: if the resource path is `/resource/hello.sh`, you need to use the full path of `/resource/hello.sh` to use it in the script. +> For example: if the resource path is `resource/hello.sh`, you need to use the full path of `resource/hello.sh` to use it in the script. ![use-shell](../../../../img/new_ui/dev/resource/demo/file-demo02.png) diff --git a/docs/docs/zh/guide/resource/file-manage.md b/docs/docs/zh/guide/resource/file-manage.md index 24c634bcfb..a4a14cfe64 100644 --- a/docs/docs/zh/guide/resource/file-manage.md +++ b/docs/docs/zh/guide/resource/file-manage.md @@ -54,11 +54,11 @@ 在项目管理的工作流定义模块,创建一个新的工作流,使用 shell 任务。 -- 脚本:`sh hello.sh` -- 资源:选择 `hello.sh` +- 脚本:`sh resource/hello.sh` +- 资源:选择 `resource/hello.sh` > 注意:脚本中选择资源文件时文件名称需要保持和所选择资源全路径一致: -> 例如:资源路径为`/resource/hello.sh` 则脚本中调用需要使用`/resource/hello.sh`全路径 +> 例如:资源路径为`resource/hello.sh` 则脚本中调用需要使用`resource/hello.sh`全路径 ![use-shell](../../../../img/new_ui/dev/resource/demo/file-demo02.png)