Fixed bug with bvar_forecast under Octave (mkdir doesn't have the implicit "-p" option)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2800 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
84cb23d172
commit
5b06ad8ae5
|
@ -155,7 +155,10 @@ function bvar_forecast(nlags)
|
|||
|
||||
DirectoryName = [ M_.fname '/bvar_forecast' ];
|
||||
if ~isdir(DirectoryName)
|
||||
mkdir('.',DirectoryName);
|
||||
if ~isdir(M_.fname)
|
||||
mkdir(M_.fname);
|
||||
end
|
||||
mkdir(DirectoryName);
|
||||
end
|
||||
save([ DirectoryName '/simulations.mat'], 'sims_no_shock', 'sims_with_shocks');
|
||||
|
||||
|
|
Loading…
Reference in New Issue