Skip to content

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

Answered by luxcgo
yburger asked this question in Q&A
Discussion options

You must be logged in to vote

环境变量只有在类sh下才能正确解析,且zsh相比普通sh对文件名中有空格的情况支持会更好。
故推荐写法如下

[[Shows.PostCmds]]
Path = "oliveshell"
Args = ["/bin/zsh", "-c", "rclone copy $FILE_PATH anime:LiveRecords"]

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yburger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants
Converted from issue

This discussion was converted from issue #42 on July 23, 2022 07:00.