Fixed a dependency-check bug introduced last commit.
This commit is contained in:
parent
fb316c25be
commit
af07814b8e
|
@ -329,13 +329,16 @@ function check_dependencies() {
|
||||||
for CLITool in ${CLITools[*]}; do
|
for CLITool in ${CLITools[*]}; do
|
||||||
# Could use parameter replacement, but requires extra variable.
|
# Could use parameter replacement, but requires extra variable.
|
||||||
local toolIdentifier=$(printf "%-44s" "$CLITool" | sed 's/ /./g')
|
local toolIdentifier=$(printf "%-44s" "$CLITool" | sed 's/ /./g')
|
||||||
local toolState=$([ ! hash $CLITool 2>/dev/null ] && echo "$CRed Missing!$CClr" || echo ".....$CGrn OK.$CClr")
|
local toolState=$(! hash $CLITool 2>/dev/null && echo "$CRed Missing!$CClr" || echo ".....$CGrn OK.$CClr")
|
||||||
|
CLIToolsMissing=$([[ "$toolState" = *"Missing"* ]] && echo true)
|
||||||
format_center "$FLUXIONVLine $toolIdentifier$toolState"
|
format_center "$FLUXIONVLine $toolIdentifier$toolState"
|
||||||
echo -e "$FormatCenter"
|
echo -e "$FormatCenter"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$CLIToolsMissing" ]; then
|
if [ "$CLIToolsMissing" ]; then
|
||||||
|
echo
|
||||||
|
format_center "${CRed}Stopping due to a lack of dependencies!"; echo -e "$FormatCenter"
|
||||||
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue