[nostalgia] Ensure pkg-gba reads .current_build without a new line

This commit is contained in:
Gary Talent 2023-12-30 13:59:10 -06:00
parent 3a1b75c9ee
commit 9b8fdcc970

View File

@ -20,6 +20,8 @@ host_env = f'{os}-{arch}'
# get current build type # get current build type
with open(".current_build", "r") as f: with open(".current_build", "r") as f:
current_build = f.readlines()[0] 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_dir = sys.argv[1]
project_name = sys.argv[2] project_name = sys.argv[2]