Skip to content

Commit

Permalink
Skip directory creation if it already exists, see #1308
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Sep 9, 2022
1 parent edfacd0 commit 8f1e366
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/scripts/make-conglomerate-string-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ const path = require( 'path' );
if ( conglomerateStringFileName === 'acid-base-solutions_all_locales_strings.json' ) {

const outputDir = path.join( __dirname, '..', '..', 'dist', 'strings' );
fs.mkdirSync( outputDir );
try {
fs.mkdirSync( outputDir );
}
catch( e ) {
// already exists
}

const outputPath = path.join( outputDir, conglomerateStringFileName );

Expand Down

0 comments on commit 8f1e366

Please sign in to comment.