From 43a87b606e7f22327f0aea01170cb078f978f5da Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 30 Dec 2023 13:59:10 -0600 Subject: [PATCH] [nostalgia] Ensure pkg-gba reads .current_build without a new line --- scripts/pkg-gba.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]