aboutsummaryrefslogtreecommitdiff
path: root/system/update.lua
diff options
context:
space:
mode:
Diffstat (limited to 'system/update.lua')
-rw-r--r--system/update.lua15
1 files changed, 8 insertions, 7 deletions
diff --git a/system/update.lua b/system/update.lua
index 7239f9a..3e04931 100644
--- a/system/update.lua
+++ b/system/update.lua
@@ -1,6 +1,6 @@
--[[
bits-UI Update: A boot loader for bits-UI
- Copyright (C) 2019 Alee14
+ Copyright (C) 2020 Alee14
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -13,18 +13,19 @@
GNU General Public License for more details.
]]--
-local devMode = false
+local gitMode = false
if fs.exists("/.git") then
- devMode = true
+ gitMode = true
else
- devMode = false
+ gitMode = false
end
-if devMode == true then
- print("Developer mode is set to true!\nWhich means that you cannot update, you must use github to update.")
+if gitMode == true then
+ print("NOTICE: Git mode is set to true!\n\nWhich means that you cannot update, you must use Git to update.\n")
+ print("Args: \"git pull\"")
sleep(2)
os.reboot()
else
print("Running the updater...")
sleep(1)
shell.run("pastebin", "run", "7XY80hfG")
-end \ No newline at end of file
+end