Browse Source

docs(file-manage): The file in File manage is a relative path, not an absolute path (#13641)

3.2.0-release
iuhoay 2 years ago committed by GitHub
parent
commit
b48eae8ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      docs/docs/en/guide/resource/file-manage.md
  2. 6
      docs/docs/zh/guide/resource/file-manage.md

6
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. In the workflow definition module of project Manage, create a new workflow using a shell task.
- Script: 'sh hello.sh' - Script: 'sh resource/hello.sh'
- Resource: Select '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: > 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) ![use-shell](../../../../img/new_ui/dev/resource/demo/file-demo02.png)

6
docs/docs/zh/guide/resource/file-manage.md

@ -54,11 +54,11 @@
在项目管理的工作流定义模块,创建一个新的工作流,使用 shell 任务。 在项目管理的工作流定义模块,创建一个新的工作流,使用 shell 任务。
- 脚本:`sh hello.sh` - 脚本:`sh resource/hello.sh`
- 资源:选择 `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) ![use-shell](../../../../img/new_ui/dev/resource/demo/file-demo02.png)

Loading…
Cancel
Save