I know what the operators && and || do in Bash.
But recently I came across the following case in a shell script:
[[ test1 ]] && { test2 } || :
I am confused as to what does the || : (logical OR followed by :) in the above statement does?
Could anyone elaborate?
 
     
     
    