Commit 1b74df41 authored by Julian Schuh's avatar Julian Schuh

improve plasubility checking for target branch

parent 90977f4a
......@@ -27,7 +27,7 @@ end
print('[+] device matches criteria (current branch ' .. current_branch .. ', model ' .. model .. ') for change of autoupdater branch')
local to_branch = site.update_stabilizer.to_branch()
if not to_branch then
if not to_branch or type(to_branch) ~= "string" or string.len(to_branch) < 1 then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment