(main): Accept 2 return from update_goal_chain and die with that.
if (any_remade)
goto re_exec;
else if (any_failed)
- die (1);
+ die (2);
else
break;
}
/* Updated successfully. */
status = 0;
break;
- case 1:
+ case 2:
/* Updating failed. */
+ status = 2;
+ break;
+ case 1:
+ /* We are under -q and would run some commands. */
status = 1;
break;
default:
buf, cs->description);
}
- die (bad);
+ die (bad ? 2 : 0);
}
}