Enforcing double quotes

This commit is contained in:
Nex 2021-08-01 19:50:04 +02:00
parent a3d10c1824
commit be24680046
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ log = logging.getLogger(__name__)
OUTPUT_HELP_MESSAGE = "Specify a path to a folder where you want to store JSON results"
# Set this environment variable to a password if needed.
PASSWD_ENV = 'MVT_IOS_BACKUP_PASSWORD'
PASSWD_ENV = "MVT_IOS_BACKUP_PASSWORD"
#==============================================================================
# Main

View File

@ -56,7 +56,7 @@ class IOSExtraction(MVTModule):
bak_path = f"{file_path}.bak"
shutil.move(file_path, bak_path)
ret = subprocess.call(['sqlite3', bak_path, f'.clone "{file_path}"'],
ret = subprocess.call(["sqlite3", bak_path, f".clone '{file_path}'"],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if ret != 0:
raise DatabaseCorruptedError("Recovery of database failed")