From 440dfcadfd4f7b990228f2f6df6a177a7b0bfb41 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Fri, 2 Jul 2021 21:26:45 -0400 Subject: [PATCH] bug --- tools/script_manager.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/script_manager.lua b/tools/script_manager.lua index 9c7e388..1cee765 100644 --- a/tools/script_manager.lua +++ b/tools/script_manager.lua @@ -880,9 +880,11 @@ if sm.executables.git and clean and checkout_repo_branch(repo, "master") end end - elseif branches ~= nil and LUA_API_VER > branches[#branches] then - log.msg(log.info, "no newer branches, staying on master") - -- stay on master + elseif branches then + if LUA_API_VER > branches[#branches] then + log.msg(log.info, "no newer branches, staying on master") + -- stay on master + end else -- checkout the appropriate branch for API version if it exists log.msg(log.info, "checking out the appropriate API branch")