mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-28 15:18:55 +00:00
Enforcing double quotes
This commit is contained in:
parent
a3d10c1824
commit
be24680046
|
@ -29,7 +29,7 @@ log = logging.getLogger(__name__)
|
||||||
OUTPUT_HELP_MESSAGE = "Specify a path to a folder where you want to store JSON results"
|
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.
|
# Set this environment variable to a password if needed.
|
||||||
PASSWD_ENV = 'MVT_IOS_BACKUP_PASSWORD'
|
PASSWD_ENV = "MVT_IOS_BACKUP_PASSWORD"
|
||||||
|
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
# Main
|
# Main
|
||||||
|
|
|
@ -56,7 +56,7 @@ class IOSExtraction(MVTModule):
|
||||||
bak_path = f"{file_path}.bak"
|
bak_path = f"{file_path}.bak"
|
||||||
shutil.move(file_path, bak_path)
|
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)
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
raise DatabaseCorruptedError("Recovery of database failed")
|
raise DatabaseCorruptedError("Recovery of database failed")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user