mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-05 04:27:55 +00:00
3f229cac4c
builddebs.pl stages the genesis bmcsetup and getipmi helpers into the xCAT package by writing the rewritten text and then chmod'ing it, which is the third copy of the write-then-make-executable pair the previous change collapsed. It was left out because it uses 0755 while the published repo helper uses 0775. Give write_script an optional mode, defaulting to the 0775 it already used, and use it for the postscripts with 0755. The two modes stay exactly as they were -- the postscripts are deliberately not group-writable -- and the test asserts that the caller's mode is honoured rather than overwritten by the default. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>