Instruction uses all of its entries.
This commit is contained in:
parent
1045502d8a
commit
5973687855
@ -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|
|
||||
|
Reference in New Issue
Block a user