X Tutup
Skip to content

Commit eed5bc9

Browse files
committed
Fix 'file exists' bug for rush change --bulk
1 parent c0e9dd8 commit eed5bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/rush-lib/src/cli/actions/ChangeAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ export class ChangeAction extends BaseRushAction {
618618
(interactiveMode ? await this._promptForOverwrite(promptModule, filePath) : false)
619619
);
620620

621-
if (!interactiveMode && !overwrite) {
621+
if (!interactiveMode && fileExists && !overwrite) {
622622
throw new Error(`Changefile ${filePath} already exists`);
623623
}
624624

0 commit comments

Comments
 (0)
X Tutup