From f9a40c97deea69417e5d6000896487d82444e8cb Mon Sep 17 00:00:00 2001 From: Gabriel Moreira Minossi Date: Sun, 17 Jan 2021 23:12:50 -0300 Subject: [PATCH] Improving setup Copying Libraries contents to the right directory --- setup.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.lua b/setup.lua index 0b5e41c..fcf679e 100644 --- a/setup.lua +++ b/setup.lua @@ -12,9 +12,6 @@ shell.execute("wget -fq " .. tarBin) local InfOS = "https://github.com/gordominossi/InfOS/releases/download/v0.2.1/InfOS.tar" shell.setWorkingDirectory("/home") -if not shell.resolve("/home/lib") then - shell.execute("mkdir lib") -end if not shell.resolve("/home/InfOS") then shell.execute("mkdir InfOS") end @@ -28,7 +25,8 @@ shell.execute("rm -f InfOS.tar") shell.setWorkingDirectory("/home/") shell.execute("rm -rf lib") -shell.execute("cp -r InfOS/Libraries lib") +shell.execute("mkdir lib") +shell.execute("cp -r InfOS/Libraries/* lib") shell.execute("rm -f .shrc") shell.execute("cp InfOS/.shrc .shrc") shell.execute("rm -f setup.lua")