From 5c916be26a3240ae5ac111ef445ffe262a1837b7 Mon Sep 17 00:00:00 2001 From: chefkoch <601866+chefkoch@users.noreply.github.com> Date: Wed, 18 Dec 2024 09:59:56 +0100 Subject: [PATCH] only delete duplicates if option is set --- cli/src/commands/asset.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/src/commands/asset.ts b/cli/src/commands/asset.ts index 164e10aa26..a66c34244c 100644 --- a/cli/src/commands/asset.ts +++ b/cli/src/commands/asset.ts @@ -332,7 +332,10 @@ const deleteFiles = async ({ files: string[], duplicates: string[] } , options: deletionProgress.stop(); } - + + if (!options.deleteDuplicates) { + return; + } console.log('Deleting assets which are duplicates...'); const deletionProgressDupe = new SingleBar(