Shell needed for unpack LittleFS cmd

This commit is contained in:
Jason2866 2023-09-23 13:24:37 +02:00 committed by GitHub
parent 81d287a3b0
commit 9ff65d76cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ def unpack_fs(fs_info: FSInfo, downloaded_file: str):
cmd = fs_info.get_extract_cmd(downloaded_file, unpack_dir) cmd = fs_info.get_extract_cmd(downloaded_file, unpack_dir)
print("Executing extraction command: " + str(cmd)) print("Executing extraction command: " + str(cmd))
try: try:
returncode = subprocess.call(cmd, shell=False) returncode = subprocess.call(cmd, shell=True)
print("Unpacked filesystem.") print("Unpacked filesystem.")
return (True, unpack_dir) return (True, unpack_dir)
except subprocess.CalledProcessError as exc: except subprocess.CalledProcessError as exc: