Exit 1 on missing requirements.
parent
75a5c2eb00
commit
8aaac71073
1
jilo
1
jilo
|
@ -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
|
||||||
|
|
1
jilo-cli
1
jilo-cli
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue