bin/menuconfig: Bail out when the tool fails
@@ -70,6 +70,10 @@ Dir.chdir(ROOT) do
system(tool, FILE)
end
+ unless $?.success?
+ exit $?.exitstatus
+ end
+
# Force normalize at the end. Otherwise recent kernels (5.8+) will have the wrong compiler data.
exec(File.join(ROOT, "bin", "kernel-normalize-config"), *ARGV)
end
