From a405ec93546b95c2369ec9069b3616944d785198 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 15 Nov 2020 12:53:40 -0500 Subject: Possible new app system?; Changed copyright; Some fixes --- system/update.lua | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'system/update.lua') 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 -- cgit v1.2.3