diff --git a/scripts/pkg-gba.py b/scripts/pkg-gba.py index 7234f61c..f47c70f2 100755 --- a/scripts/pkg-gba.py +++ b/scripts/pkg-gba.py @@ -18,8 +18,10 @@ arch = platform.machine() host_env = f'{os}-{arch}' # get current build type -with open(".current_build","r") as f: +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] project_dir = sys.argv[1] project_name = sys.argv[2]