fix: use source before changing its contents

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2023-11-20 16:50:30 +05:30
parent b010dc584f
commit 76c9fbd0cd
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -63,8 +63,8 @@ class DbManager:
if source.endswith(".gz"):
if gzip := which("gzip"):
source = []
command.extend([gzip, "-cd", source, "|"])
source = []
if pv:
command.extend([pv, "|"])
print("Restoring Database file...")