Shell Notes
&&
||
;
in shell command:
cmd1 && cmd2
means cmd2 will only run while cmd1 success.cmd1 || cmd2
means cmd2 will only run while fmd1 fails.cmd1 ; cmd2
will run cmd2 regardless cmd1 success or not.
Was this page helpful?
&&
||
;
in shell command:
cmd1 && cmd2
means cmd2 will only run while cmd1 success.cmd1 || cmd2
means cmd2 will only run while fmd1 fails.cmd1 ; cmd2
will run cmd2 regardless cmd1 success or not.Was this page helpful?