Refactor bootstrap script for SwarmUI management and enhance error handling
- Introduced functions `swarm_git_ok`, `clone_swarmui`, and `update_swarmui` to streamline the cloning and updating process of SwarmUI. - Improved error handling during the update process, ensuring a fallback to cloning if the update fails. - Enhanced logging messages for better visibility during cloning and updating operations. - Updated tests to verify the presence of new functions and logging messages in the bootstrap script.
This commit is contained in:
@@ -23,3 +23,5 @@ def test_bootstrap_script_is_native_swarmui():
|
||||
assert "install_dotnet_via_curl" in script
|
||||
assert "chown -R" in script
|
||||
assert "wget" in script
|
||||
assert "swarm_git_ok" in script
|
||||
assert "переклонирую" in script or "перед clone" in script
|
||||
|
||||
Reference in New Issue
Block a user