potiuk commented on pull request #20701:
URL: https://github.com/apache/airflow/pull/20701#issuecomment-1011350316


   > From what I understand: "sudo apt-get clean" will finish with a state zero 
(0), if this finish with a state <> than zero, and if the check is true it will 
generate an exception, @potiuk, we don't want that exception to happen, right? 
for that reason we are changing "check=False"
   
   Actually if it will finish with state != 0. 
   By default "exit 0" in POSIX systems  (standard for UNIX/LINUX - like 
systems) means that it was "success". Any non-zero value means "failure". 
That's why "command || true" is used to always succeed. The command "true" 
always returns "0" and "command || true"  works in the way that regardless what 
is returned by command, always "true" result will be used.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to