Skip to content

Commit

Permalink
Remove duplicated print
Browse files Browse the repository at this point in the history
  • Loading branch information
superrnovae committed Aug 31, 2022
1 parent 436b181 commit d41a750
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions permasigner/permasigner.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ def main(self) -> None:
logger.error("URL provided is not an IPA, make sure to provide a direct link.")
exit(1)

print(f"Downloading IPA from {self.args.url}...")
logger.log(f"Downloading IPA...", color=colors["yellow"])
save_path = self.download_ipa()
print(f"Extracting IPA...")
self.extract_ipa(save_path)
# Check if path arg was specified
# then, check if path is a deb or an ipa
Expand Down Expand Up @@ -247,6 +246,9 @@ def download_ipa(self) -> Path:
# Attempt to download ipa from specified url
# then write content to file on 200 OK
# otherwise, exit with an error

logger.debug(f"Downloading IPA from {self.args.url}", self.args.debug)

try:
res = requests.get(self.args.url, stream=True)
if res.status_code == 200:
Expand Down

0 comments on commit d41a750

Please sign in to comment.