diff --git a/src/brulijam/setLabel.lua b/src/brulijam/setLabel.lua index e011bed..0ecb707 100644 --- a/src/brulijam/setLabel.lua +++ b/src/brulijam/setLabel.lua @@ -4,7 +4,7 @@ local hash = require("lib.hash") local systemConfig = basic.readFileAll("/brulijam/config/system.config") systemConfig = textutils.unserialize(systemConfig) -if os.getComputerLabel() == nil then +if os.getComputerLabel() == nil or os.getComputerLabel() == "" then local labelMainPart = string.sub(hash.digestStr(string.format(os.getComputerID())), 1, 6) os.setComputerLabel(systemConfig["labelPrefix"] .. "-" .. labelMainPart) end \ No newline at end of file