diff --git a/util/scripts/pkg-gba.py b/util/scripts/pkg-gba.py index 98dfc995..614faabf 100755 --- a/util/scripts/pkg-gba.py +++ b/util/scripts/pkg-gba.py @@ -1,7 +1,7 @@ #! /usr/bin/env python3 # -# Copyright 2016 - 2023 gary@drinkingtea.net +# Copyright 2016 - 2026 gary@drinkingtea.net # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this @@ -21,11 +21,11 @@ def run(args: list[str]): if subprocess.run(args).returncode != 0: sys.exit(1) -# get current build type +# get the current build type with open(".current_build", "r") as f: current_build = f.readlines()[0] -if current_build[len(current_build) - 1] == '\n': - current_build = current_build[:len(current_build) - 1] +if current_build[-1] == '\n': + current_build = current_build[:-1] project_dir = sys.argv[1] project_name = sys.argv[2]