Obsolete
/
packaging
Archived
3
0
Fork 0

Instruction uses all of its entries.

master
Luka Vandervelden 2019-07-21 15:24:30 +02:00
parent 1045502d8a
commit 5973687855
1 changed files with 7 additions and 6 deletions

View File

@ -26,14 +26,15 @@ class Package::Instructions
def run(context : Context, recipe : Recipe) : BuildStatus
if size > 0
# FIXME: Maybe do that for [1] and the others, no?
child = context.run recipe.building_directory, "sh", ["-c", self[0]]
each do |command|
child = context.run recipe.building_directory, "sh", ["-c", command]
if child.exit_status == 0
return BuildStatus::Success
else
return BuildStatus::Failed
if child.exit_status != 0
return BuildStatus::Failed
end
end
return BuildStatus::Success
end
context.building_backends.select(&.phase.==(@phase)).each do |backend|