From 037f89e2d32d893d352f790ede7e12cd0ddf1a5d Mon Sep 17 00:00:00 2001 From: gutosie Date: Wed, 23 Feb 2022 14:39:06 +0200 Subject: [PATCH] Update extract.py --- NeoBoot/extract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NeoBoot/extract.py b/NeoBoot/extract.py index 0bf832d..38b7ad4 100644 --- a/NeoBoot/extract.py +++ b/NeoBoot/extract.py @@ -868,8 +868,8 @@ def NEOBootExtract(source, target, ZipDelete, Nandsim): rc = os.system(cmd) cmd = 'touch /tmp/root_jffs2; ' + extensions_path + 'NeoBoot/bin/nfidump ' + sourcefile2 + ' ' + getNeoLocation() + 'ImageBoot/' + target rc = os.system(cmd) - if os.path.exists('%sImageBoot/%s/media/squashfs-images' % (media, target)): - os.system('cp -af /media/hdd/squashfs-images/* "%sImageBoot/%s/media/squashfs-images' % (media, target)) + if os.path.exists('%sImageBoot/%s/media/squashfs-images' % (media, target)) and os.path.exists('%s/squashfs-images' % (media)) : + os.system('cp -af %s/squashfs-images/* "%sImageBoot/%s/media/squashfs-images' % (media, media, target)) if ZipDelete == 'True': rc = os.system('rm -rf ' + sourcefile2) else: