From 312b55c01b8591e0e8a8397c10069aab5a4a4f8a Mon Sep 17 00:00:00 2001 From: Hugo Saporetti Junior Date: Tue, 20 Aug 2024 19:09:23 -0300 Subject: [PATCH] Improve install script for AskAI --- .../hspm/recipes/Darwin/default.recipe | 2 +- check-badge.svg | 8 +- dotfiles/bash/hhsrc.bash | 12 ++- install.bash | 79 +++++++++---------- tests/sanity-tests.bats | 7 +- 5 files changed, 57 insertions(+), 51 deletions(-) diff --git a/bin/apps/bash/hhs-app/plugins/hspm/recipes/Darwin/default.recipe b/bin/apps/bash/hhs-app/plugins/hspm/recipes/Darwin/default.recipe index 09b4d40c..9dac8b10 100644 --- a/bin/apps/bash/hhs-app/plugins/hspm/recipes/Darwin/default.recipe +++ b/bin/apps/bash/hhs-app/plugins/hspm/recipes/Darwin/default.recipe @@ -8,7 +8,7 @@ function _about_() { function _which_() { - if command -v ${@} &>/dev/null; then + if command -v ${@} &>/dev/null || "${HHS_MY_OS_PACKMAN}" info ${@} &>/dev/null; then return 0 fi diff --git a/check-badge.svg b/check-badge.svg index 3d2b30a3..f7bbfc25 100644 --- a/check-badge.svg +++ b/check-badge.svg @@ -1,14 +1,14 @@ tests: passed - + - - + + - +