【问题标题】:Alpine image in gitlab CI: find does not replace {}gitlab CI 中的高山图像:find 不替换 {}
【发布时间】:2020-08-31 00:27:33
【问题描述】:

我的 gitlab ci 中有以下脚本设置:

找到 . -iname "*.tf" -exec envsubst

但是,我收到一条错误消息“/bin/sh: eval: line 119: can't open {}: no such file”。 我也尝试在 {} 周围加上单引号,但得到了同样的错误。也许我没有正确理解 find ? Alpine ash 中的 shell 语法是否与标准 sh 或 bash 不同,因此它不起作用?

【问题讨论】:

    标签: find gitlab-ci alpine


    【解决方案1】:

    重定向 < 适用于 find 而不是 envsubst,正如您所期望的那样

    【讨论】:

    • 哇,可能永远都想不通...你知道正确的语法吗?
    猜你喜欢
    • 1970-01-01
    • 2019-07-18
    • 2021-10-15
    • 2022-12-10
    • 2019-07-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多