Can someone please tell me what I'm doing wrong here. With this conditionals, I do not expect the block in braces to run if the variable is not set. So why do I keep getting "[: -gt: unary operator expected"?
Thanks
[ -n $start_step_i ] && {
[ $start_step_i -gt 0 ] && [ $start_step_i -le 4] && start_step=$start_step_i ;
}
[ $start_step == 1 ] && echo "Running all steps"