Skip to content
Snippets Groups Projects
Commit c00cac52 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

update

parent 8a09e999
No related branches found
No related tags found
No related merge requests found
......@@ -8,13 +8,15 @@ check_app() {
TOOL_BIN=$1
TOOL_NAME=$2
if [ -z "$(which $TOOL_BIN)" ]; then
if [ -z "$TOOL_VERSIONS" ]; then
echo "[$TOOL_BIN] is not found!"
else
if [ -z "$TOOL_VERSIONS" ]; then
if [ -n "$(grep -v -e '^[[:space:]]*#' $HOME/.tool-versions | cut -s -d ' ' -f 1 | grep -w $TOOL_NAME)" ]; then
echo "[$TOOL_NAME] should be installed with [asdf-bootstrap]!"
else
echo "[$TOOL_NAME] is not found!"
echo " * [$TOOL_NAME] could be installed with [asdf]!"
fi
fi
if [ -n "$(which apt)" ]; then
if [ -n "$(apt-file search -l $TOOL_BIN | grep -x $TOOL_NAME)" ]; then
echo " * [$TOOL_NAME] could be installed with [apt]!"
fi
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment