text: const glob = require( 'glob' );
  const fs = require( 'fs' );
  
  const globPattern = '{core,games}/!(mobile-roulette)/';
  
  const restoreBackup = () => {
    const directories = glob.sync( globPattern );
    if ( !directories.length ) return;
    for ( const directory of directories ) {
      const dir = `${directory}backups/`;
  
      fs.copyFile( `${dir}CHANGELOG.md`, 'CHANGELOG.md', ( err ) => {
        if ( err ) throw err;
        console.log( 'CHANGELOG.md was restored successfully' );
      } );
    }
  };
  
  restoreBackup();
  