Skip to content

Commit

Permalink
Merge pull request #67 from ribaricplusplus/remove-await
Browse files Browse the repository at this point in the history
Remove await before fs.existsSync()
  • Loading branch information
luangjokaj authored Nov 22, 2020
2 parents ffd7f2c + fae073e commit c944a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async function unzipWordPress() {
}

async function copyConfig() {
if (await fs.existsSync('./wp-config.php')) {
if (fs.existsSync('./wp-config.php')) {
return src('./wp-config.php')
.pipe(inject.after("define( 'DB_COLLATE', '' );", "\ndefine( 'DISABLE_WP_CRON', true );"))
.pipe(dest('./build/wordpress'));
Expand Down

0 comments on commit c944a91

Please sign in to comment.