mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
feat: refactor system info retrieval and enhance logo output
- Replaced viper calls with utility functions in GetSystemInfo to improve code clarity and maintainability. - Added a new system.go file with utility functions for retrieving system version and edition information. - Enhanced PrintLogoWithWelcomeInfo to include detailed system information, improving user experience during server startup. - Updated output formatting for better readability and consistency in welcome messages.
This commit is contained in:
@@ -65,9 +65,8 @@ verify_python() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
pip_version=$(pip -V)
|
||||
if [[ ! $pip_version =~ "python ${version}" ]]; then
|
||||
echo "ERROR: pip version does not match. expected: \"python ${version}\", but actual is \"${pip_version}\""
|
||||
if ! command -v pip &> /dev/null; then
|
||||
echo "ERROR: pip is not installed"
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user