RPM: returning values from included RPM macro

前端 未结 1 899
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-21 13:24

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

相关标签:
1条回答
  • 2021-01-21 13:52

    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.

    0 讨论(0)
提交回复
热议问题