diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-07-14 20:37:47 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-07-14 20:37:47 -0400 |
| commit | fc5532b16318599cb7acce820132f0c99ed68cc3 (patch) | |
| tree | 7e51d6f0a0df9b8ee28623a92a880c4536ada7a5 /startup.lua | |
| parent | 50bd2373002c80c83e1c79afea83342ba64eb8ff (diff) | |
| download | bits-UI-fc5532b16318599cb7acce820132f0c99ed68cc3.tar.gz bits-UI-fc5532b16318599cb7acce820132f0c99ed68cc3.tar.bz2 bits-UI-fc5532b16318599cb7acce820132f0c99ed68cc3.zip | |
New things!
Diffstat (limited to 'startup.lua')
| -rw-r--r-- | startup.lua | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/startup.lua b/startup.lua index f09d191..e317bc1 100644 --- a/startup.lua +++ b/startup.lua @@ -15,13 +15,18 @@ ]]-- local boot = "/system/boot.lua" local bublcfg = "/boot/bubl.cfg" -local allowUpdate = true +local bVersion = "0.2" +local devMode = false function bootloader() term.setCursorPos(1,1) print("Welcome to the BUBL boot loader!\n") term.setCursorPos(1,2) - print("Version 0.2") + if fs.exists("/.git") then + print("Version ".. bVersion .. "-GIT") + else + print("Version ".. bVersion) + end term.setCursorPos(1,4) print("1. Boot bits-UI\n") term.setCursorPos(1,5) @@ -59,8 +64,8 @@ function bootloaderInput() end elseif input == "2" then clear() - if allowUpdate == false then - print("You have set updating to false!\n Please set updating to true if you want to update...") + if devMode == true then + print("You have developer mode set to true! Which means that you cannot update, you must use github to update.") sleep(3) clear() bootloader() |
