Mercurial > hg > octave-lyh
diff scripts/miscellaneous/private/__xzip__.m @ 12953:5cc3b7673d25 stable
__xzip__: Fix regression about moving compressed files (bug #33993)
author | Orion Poplawski <orion@cora.nwra.com> |
---|---|
date | Thu, 11 Aug 2011 19:50:57 -0500 |
parents | a3019189ac51 |
children | ae88a81e5d5c |
line wrap: on
line diff
--- a/scripts/miscellaneous/private/__xzip__.m +++ b/scripts/miscellaneous/private/__xzip__.m @@ -80,14 +80,16 @@ commandname, status); endif - if (nargout > 0) - if (nargin == 5) + if (nargin == 5) + if (nargout > 0) entries = cellfun( @(x) fullfile (outdir, sprintf ("%s.%s", x, extension)), f, "uniformoutput", false); - else - movefile (cellfun(@(x) sprintf ("%s.%s", x, extension), f, - "uniformoutput", false), cwd); + endif + else + movefile (cellfun(@(x) sprintf ("%s.%s", x, extension), f, + "uniformoutput", false), cwd); + if (nargout > 0) ## FIXME this does not work when you try to compress directories entries = cellfun(@(x) sprintf ("%s.%s", x, extension), files, "uniformoutput", false);