diff options
| author | forsyth <forsyth@vitanuova.com> | 2010-08-19 18:09:32 +0100 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2010-08-19 18:09:32 +0100 |
| commit | 55b0bc0011ddae9df99d50fa0498110585d09a81 (patch) | |
| tree | c300373a6440ded8ae373220e0dab159d2f09fc2 /appl | |
| parent | 95f2c0e2de3eabab8fa131443728a2baf1dff31f (diff) | |
20100819-1809
Diffstat (limited to 'appl')
| -rw-r--r-- | appl/cmd/ar.b | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/appl/cmd/ar.b b/appl/cmd/ar.b index 8ef237b8..d82c9209 100644 --- a/appl/cmd/ar.b +++ b/appl/cmd/ar.b @@ -174,14 +174,15 @@ init(nil: ref Draw->Context, args: list of string) for(i = 0; args != nil; args = tl args) files[i++] = ref File(hd args, trim(hd args), 0); comfun(cp, files); # do the command + allfound := 1; for(i = 0; i < len files; i++) if(!files[i].found){ sys->fprint(stderr, "ar: %s not found\n", files[i].name); - cp = "error"; + allfound = 0; } bout.flush(); - if(cp != nil) - raise "fail:"+cp; + if(!allfound) + raise "fail: file not found"; } # |
