os/mac/keg: print stderr on codesign failure
This commit is contained in:
parent
980f928000
commit
5202f712c0
@ -57,13 +57,17 @@ class Keg
|
|||||||
|
|
||||||
# Try signing again
|
# Try signing again
|
||||||
odebug "Codesigning (2nd try) #{file}"
|
odebug "Codesigning (2nd try) #{file}"
|
||||||
return if quiet_system("codesign", "--sign", "-", "--force",
|
result = system_command("codesign", args: [
|
||||||
"--preserve-metadata=entitlements,requirements,flags,runtime",
|
"--sign", "-", "--force",
|
||||||
file)
|
"--preserve-metadata=entitlements,requirements,flags,runtime",
|
||||||
|
file
|
||||||
|
], print_stderr: false)
|
||||||
|
return if result.success?
|
||||||
|
|
||||||
# If it fails again, error out
|
# If it fails again, error out
|
||||||
onoe <<~EOS
|
onoe <<~EOS
|
||||||
Failed applying an ad-hoc signature to #{file}
|
Failed applying an ad-hoc signature to #{file}:
|
||||||
|
#{result.stderr}
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user