summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-25 12:13:07 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:54 -0500
commite2d4c06d82afc047b4c42e418409fc20c6f8090d (patch)
tree5883b9ec70e31fbcbccab7b8fea1e5cd7e1931b1 /src
parent37dec1b0e9b49f88048cbc5ac75ef08c31243b44 (diff)
downloadperk-e2d4c06d82afc047b4c42e418409fc20c6f8090d.tar.bz2
perk-e2d4c06d82afc047b4c42e418409fc20c6f8090d.tar.xz
driver: pe_main(): skip remaining units once an error has occurred.
Diffstat (limited to 'src')
-rw-r--r--src/driver/pe_amain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/pe_amain.c b/src/driver/pe_amain.c
index d7f0046..42ec2d1 100644
--- a/src/driver/pe_amain.c
+++ b/src/driver/pe_amain.c
@@ -101,7 +101,7 @@ int pe_main(int argc, char ** argv, char ** envp)
if ((pe_version(dctx)) < 0)
return pe_exit(dctx,PERK_ERROR);
- for (unit=dctx->units; *unit; unit++) {
+ for (unit=dctx->units; *unit && !dctx->errv[0]; unit++) {
if (!(pe_get_unit_ctx(dctx,*unit,&uctx))) {
pe_perform_unit_actions(dctx,uctx);
pe_free_unit_ctx(uctx);