diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-11-15 12:53:40 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-11-15 12:53:40 -0500 |
| commit | a405ec93546b95c2369ec9069b3616944d785198 (patch) | |
| tree | 06645687d143e880ee7ca409ec72270a8832a79b /system/update.lua | |
| parent | 1fd3cd3305990d045106b015a26e8ffcc0f592d0 (diff) | |
| download | bits-UI-a405ec93546b95c2369ec9069b3616944d785198.tar.gz bits-UI-a405ec93546b95c2369ec9069b3616944d785198.tar.bz2 bits-UI-a405ec93546b95c2369ec9069b3616944d785198.zip | |
Possible new app system?; Changed copyright; Some fixes
Diffstat (limited to 'system/update.lua')
| -rw-r--r-- | system/update.lua | 15 |
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 |
