Don't trigger open file error if the last command is "quit" in command file.

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1692 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Jie Zhang 15 years ago
parent 3197bf76c7
commit b684c8e6a0

@ -1,3 +1,8 @@
2010-01-21 Jie Zhang <jie.zhang@analog.com>
* src/apps/jtag/jtag.c (main): Don't trigger open file error
if the last command is "quit".
2010-01-20 Jie Zhang <jie.zhang@analog.com>
* po/POTFILES.in: Remove src/bsdl/bsdl_bison.c, src/bsdl/bsdl_flex.c,

@ -488,7 +488,7 @@ main (int argc, char *const argv[])
go = urj_parse_file (URJ_LOG_LEVEL_NORMAL, chain, argv[i]);
cleanup (chain);
if (go < 0)
if (go < 0 && go != URJ_STATUS_MUST_QUIT)
{
printf (_("Unable to open file `%s'!\n"), argv[i]);
break;

Loading…
Cancel
Save