Skip to content

Commit

Permalink
fix: revert changes to the import command
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Jun 17, 2024
1 parent ee14ff9 commit be5f66b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/commands/dev-env-import-sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class DevEnvImportSQLCommand {
}

const fd = await fs.promises.open( resolvedPath, 'r' );
const importArg = [ 'db', '--disable-auto-rehash', '--skip-plugins', '--skip-themes' ].concat(
const importArg = [ 'db', '--disable-auto-rehash' ].concat(
this.options.quiet ? '--silent' : []
);
const origIsTTY = process.stdin.isTTY;
Expand All @@ -106,7 +106,9 @@ export class DevEnvImportSQLCommand {
fs.unlinkSync( resolvedPath );
}

const cacheArg = [ 'wp', 'cache', 'flush', '--skip-plugins', '--skip-themes' ].concat( this.options.quiet ? '--quiet' : [] );
const cacheArg = [ 'wp', 'cache', 'flush', '--skip-plugins', '--skip-themes' ].concat(
this.options.quiet ? '--quiet' : []
);
await exec( lando, this.slug, cacheArg );

if (
Expand Down

0 comments on commit be5f66b

Please sign in to comment.