This is a follow-up question to RPM: loading bash script in %pre scriptlet.
I am trying to define some utility functions as macros, so later I can %include t
%include
Stop wrapping the macro body in ().
()
That's spawning a sub-shell and preventing the function from being seen in the first case and preventing the exit from exiting the %pre scriptlet itself in the second case.
exit
%pre