Pham Quỳnh Anh
New member
What does || in shell script mean?
Answer
Just like && , || is a bash control operator: && means execute the statement which follows
only if the preceding statement executed successfully (returned exit code zero). || means execute the statement which follows only if the preceding statement failed (returned a non-zero exit code).
Answer
Just like && , || is a bash control operator: && means execute the statement which follows
only if the preceding statement executed successfully (returned exit code zero). || means execute the statement which follows only if the preceding statement failed (returned a non-zero exit code).