Skip to content

Commit

Permalink
Lint script with autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
itsnebulalol authored and github-actions[bot] committed Jul 28, 2022
1 parent baf4adb commit c48e9c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from utils.hash import LdidHash
from utils.downloader import DpkgDeb, Ldid


def is_ios():
# Check iOS function is up here so we can conditionally import stuff
if not sys.platform == "darwin":
Expand All @@ -30,6 +31,8 @@ def is_ios():
from utils.installer import Installer

""" Functions """


def cmd_in_path(args, cmd):
if args.debug:
print(f"[DEBUG] Checking if command {cmd} is in PATH...")
Expand Down Expand Up @@ -78,6 +81,8 @@ def is_dpkg_installed(pkg):


""" Main Function """


def main(args):
if "main" not in subprocess.getoutput(['git', 'rev-parse', '--abbrev-ref', 'HEAD']):
ver_string = f"{subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']).decode('ascii').strip()}_{subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).decode('ascii').strip()}"
Expand Down

0 comments on commit c48e9c8

Please sign in to comment.