mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-21 15:18:19 +00:00
0d8c61d8c3
go-xcat runs internal_setup and the main program at file scope. A test that sources the script to read its package lists or call its functions starts the installer, so the tests extracted function bodies with awk and evaluated them instead. When go-xcat is sourced, it now skips internal_setup and returns before the main program. A direct run and a run from a pipe do not change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>