Skip to content

oliveshell运行命令式如何调用变量$FILE_PATH ? #42

@yburger

Description

@yburger

我需要在录制结束后使用oliveshell运行rclone copy $FILE_PATH anime:LiveRecords的命令,希望能在这条命令中能够解析出$FILE_PATH变量的值并替换到命令中,我尝试了这样写

[[Shows.PostCmds]]
Path = "oliveshell"
Args = ["rclone", "copy", "$FILE_PATH", "anime:LiveRecords"]

但是最后运行的命令中$FILE_PATH没有解析出来路径,而是直接带着变量名运行了,那么如何写配置文件才能解析出变量值呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions