- deploy/: deployment bash scripts (4 files) - recipe-generator/: recipe generation tool (Python + YAML configs) - bin/: executable wrappers (single generate-recipe entry point) - Updated deploy.sh, README.md, DEVELOPMENT.md, DEVELOPMENT_QUICK.md - Updated tests/test_recipe_generator.py and tests/integration/test_integration.py - Updated CI workflow and Makefile paths - All 41 tests pass
12 lines
351 B
Bash
Executable File
12 lines
351 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Get the core count using nproc --all
|
|
core_count=$(nproc --all)
|
|
|
|
# Check if nproc --all returns a numerical value greater than 2
|
|
if (( core_count < 2 )); then
|
|
echo "Warning: System has only $core_count core)."
|
|
echo "The script requires at least four cores"
|
|
exit 1 # Exit with an error code to indicate the condition is not met
|
|
fi
|