I would like to do something like this:gatekeeper.sh && <script>gatekeeper.sh determines whether <script> will be executed or not by returning either 0 or 1 depending on certain conditions - which works so far, but:the whole command should fail (exit status != 0) if gatekeeper.sh succeeds but <script> doesn'tthe whole command should not fail if gatekeeper.sh fails (and the second command is not executed)<script> should not be alteredIf possible I would like to keep the syntax as short as possible for better readability
Run command based on result of previous command (without failing the whole statement)
bash;shell script