Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c4a8e4a in mainline


Ignore:
Timestamp:
2011-08-21T06:09:45Z (9 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
master
Children:
ec7f8b1
Parents:
6b9355a
Message:

batch command stops executing the command sequence on the first failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/exec.c

    r6b9355a rc4a8e4a  
    134134                printf("%s: Failed waiting for command (%s)\n", progname,
    135135                    str_error(rc));
     136                return 1;
    136137        } else if (texit != TASK_EXIT_NORMAL) {
    137138                printf("%s: Command failed (unexpectedly terminated)\n", progname);
     139                return 1;
    138140        } else if (retval != 0) {
    139141                printf("%s: Command failed (exit code %d)\n",
    140142                    progname, retval);
     143                return 1;
    141144        }
    142145
Note: See TracChangeset for help on using the changeset viewer.