bliss

KISS in Lua
git clone git://bvnf.space/bliss.git
Log | Files | Refs | README | LICENSE

commit 2f1f5481f8b6897477bc7de5d588f7ad1e37f0a0
parent 76f6c76c269f7af0a6785745393a3a69740c93bb
Author: phoebos <ben@bvnf.space>
Date:   Tue, 18 Jul 2023 02:14:41 +0100

build: check utils.run succeeded

Diffstat:
Mbliss/build.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bliss/build.lua b/bliss/build.lua @@ -28,7 +28,7 @@ local function build_extract(env, p) utils.mkcd(env.mak_dir.."/"..p.pkg.."/"..(p.sources[k][2] or "")) local r = p.sources[k][1] if r:match("^git%+") then - utils.run("cp", {"-PRf", v.."/.", "."}) + if not utils.run("cp", {"-PRf", v.."/.", "."}) then os.exit(false) end elseif r:match("%.tar$") or r:match("%.tar%...$") or r:match("%.tar%....$") @@ -36,7 +36,7 @@ local function build_extract(env, p) or r:match("%.t.z") then archive.tar_extract(v) else - utils.run("cp", {"-PRf", v, "."}) + if not utils.run("cp", {"-PRf", v, "."}) then os.exit(false) end end end end