-
我需要在录制结束后使用oliveshell运行
但是最后运行的命令中$FILE_PATH没有解析出来路径,而是直接带着变量名运行了,那么如何写配置文件才能解析出变量值呢? |
Beta Was this translation helpful? Give feedback.
Answered by
luxcgo
Jul 22, 2022
Replies: 3 comments
-
@UVJkiNTQ 这位大佬应该深有体会。。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
环境变量只有在类sh下才能正确解析,且zsh相比普通sh对文件名中有空格的情况支持会更好。 [[Shows.PostCmds]]
Path = "oliveshell"
Args = ["/bin/zsh", "-c", "rclone copy $FILE_PATH anime:LiveRecords"] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yburger
-
谢谢解答,这样确实可以了 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
环境变量只有在类sh下才能正确解析,且zsh相比普通sh对文件名中有空格的情况支持会更好。
故推荐写法如下