Instruction uses all of its entries.
parent
1045502d8a
commit
5973687855
|
@ -26,16 +26,17 @@ 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
|
||||
if child.exit_status != 0
|
||||
return BuildStatus::Failed
|
||||
end
|
||||
end
|
||||
|
||||
return BuildStatus::Success
|
||||
end
|
||||
|
||||
context.building_backends.select(&.phase.==(@phase)).each do |backend|
|
||||
Dir.cd recipe.building_directory
|
||||
|
||||
|
|
Reference in New Issue