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)