Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(install): rename force flag to 'check-empty' #1237

Merged
merged 1 commit into from
Jun 28, 2020

Conversation

acburdine
Copy link
Member

closes #1218

@acburdine acburdine merged commit 6281eaa into TryGhost:master Jun 28, 2020
@acburdine acburdine deleted the fix/install-force-flag-rename branch June 28, 2020 13:40
@@ -23,7 +23,7 @@ class InstallCommand extends Command {
let version = argv.version ? `${argv.version}` : null;

// Check if the directory is empty
if (!dirIsEmpty(process.cwd()) && !argv.force) {
if (!dirIsEmpty(process.cwd()) && argv['check-empty']) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could have a minor perf improvement by swapping these checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to force ghost install
2 participants