From c00cac52bf6b8d28fb21339ad1c820bc913ca0b6 Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov <zimniy@cyberbrain.pw> Date: Wed, 3 Aug 2022 21:18:14 +0400 Subject: [PATCH] update --- bin/where_are_my_tools | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/where_are_my_tools b/bin/where_are_my_tools index a384c57..2b2c91b 100755 --- a/bin/where_are_my_tools +++ b/bin/where_are_my_tools @@ -8,13 +8,15 @@ check_app() { TOOL_BIN=$1 TOOL_NAME=$2 if [ -z "$(which $TOOL_BIN)" ]; then + echo "[$TOOL_BIN] is not found!" if [ -z "$TOOL_VERSIONS" ]; then - echo "[$TOOL_BIN] is not found!" - else 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 -- GitLab