From e8d1c01fb75c36cd8068b96e6c58bf57c784113e Mon Sep 17 00:00:00 2001 From: brulijam Date: Sat, 8 Jun 2024 23:10:40 +0200 Subject: [PATCH] . --- src/brulijam/setLabel.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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