Exit 1 on missing requirements.

main
Yasen Pramatarov 2024-06-06 10:30:48 +03:00
parent 75a5c2eb00
commit 8aaac71073
2 changed files with 2 additions and 0 deletions

1
jilo
View File

@ -111,6 +111,7 @@ check_requirements() {
if [[ "$requirements_missing" != '' ]]; then if [[ "$requirements_missing" != '' ]]; then
requirements_missing=${requirements_missing::-2} requirements_missing=${requirements_missing::-2}
echo "Error: $requirements_missing - not found. Please install to proceed." echo "Error: $requirements_missing - not found. Please install to proceed."
exit 1
fi fi
} }
check_requirements check_requirements

View File

@ -77,6 +77,7 @@ check_requirements() {
if [[ "$requirements_missing" != '' ]]; then if [[ "$requirements_missing" != '' ]]; then
requirements_missing=${requirements_missing::-2} requirements_missing=${requirements_missing::-2}
echo "Error: $requirements_missing - not found. Please install to proceed." echo "Error: $requirements_missing - not found. Please install to proceed."
exit 1
fi fi
} }
check_requirements check_requirements