aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--startup7
-rw-r--r--system/boot.lua2
3 files changed, 9 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 2272205..b944187 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
home/
system/bitUI.config
+dev_mode \ No newline at end of file
diff --git a/startup b/startup
index 71a1f16..7ed3e0d 100644
--- a/startup
+++ b/startup
@@ -28,9 +28,16 @@ function bootloaderInput()
shell.run("/system/boot.lua")
elseif input == "2" then
clear()
+ if fs.exists("dev_mode") then
+ print("You are running developer mode! You cannot update bit-UI.")
+ clear()
+ bootloader()
+ bootloaderInput()
+ else
print("Running updater...")
sleep(3)
shell.run("pastebin", "run", "7XY80hfG")
+ end
elseif input == "3" then
clear()
print(os.version())
diff --git a/system/boot.lua b/system/boot.lua
index 6ba6a18..3061d57 100644
--- a/system/boot.lua
+++ b/system/boot.lua
@@ -1,7 +1,7 @@
-- bits-UI: An operating system for ComputerCraft. Licensed with GPL-3.0.
-local version = "1.0 Alpha 1"
+local version = "1.0 Alpha 2"
local desktop = "/system/desktop.lua"
term.clear()