What does || true mean in bash?

Phạm Quyết

New member
What does || true mean in bash?
Answer
In cases where a command in the script is allowed to fail, adding || true ensures that
the resulting compound command always exits with status zero, so the script doesn’t abort.
 

Tìm kiếm

Back
Top