小编Sar*_*107的帖子

Bash 语法:如果 [ ! -F \”{}\” ]; 然后退出1;菲'

我正在 Apache Airflow 的 Bash Operator 中阅读这个 bash 命令,尽管尝试了一些谷歌搜索,但我还是无法真正理解它。

if [ ! -f \"{}\" ]; then exit 1; fi
Run Code Online (Sandbox Code Playgroud)

在这个代码块中:

check_file_existence =  BashOperator(
    task_id='check_file_existence',
    bash_command='if [ ! -f \"{}\" ]; then exit 1; fi'.format(input_file))
Run Code Online (Sandbox Code Playgroud)

你能帮我解释一下这个 bash 命令吗?

bash airflow

2
推荐指数
1
解决办法
59
查看次数

标签 统计

airflow ×1

bash ×1