Skip to content

Commit 946b8b0

Browse files
committed
Fix: temp images clearing
1 parent 758e641 commit 946b8b0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Source/CLI/Commands.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,12 @@ def com_get(system_objects: SystemObjects, command: ParsedCommandData):
192192

193193
if not IsImageExists or system_objects.FORCE_MODE:
194194
Status = EntryPoint.source_operator.image(Link)
195-
if Status: Status += EntryPoint.source_operator.images_downloader.move_from_temp(Directory, Status.value, Filename, True)
196-
if IsImageExists: print("Overwritten.")
195+
196+
if Status:
197+
if command.check_key("dir"): Status += EntryPoint.source_operator.images_downloader.move_from_temp(Directory, Status.value, Filename, True)
198+
if IsImageExists: print("Overwritten.")
199+
200+
else: Status.print_messages()
197201

198202
TimerObject.done()
199203

0 commit comments

Comments
 (0)