From 66beaa247fd2aa2d2aebe342d7d083f79877a599 Mon Sep 17 00:00:00 2001 From: Levon Date: Wed, 3 Apr 2024 08:07:27 -0500 Subject: [PATCH] use type --- scripts/install_deps.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install_deps.sh b/scripts/install_deps.sh index 70b8065..50508ac 100755 --- a/scripts/install_deps.sh +++ b/scripts/install_deps.sh @@ -6,9 +6,9 @@ DEPENDENCY_LIST="autoconf automake build-essential cmake git-core g++-12 \ texinfo wget zlib1g-dev nasm yasm libssl-dev time python3 meson ninja-build gobjc++ \ doxygen xxd jq lshw gnuplot python3-pip curl clang valgrind ccache gawk mawk" -USING_NALA=$(which nala > /dev/null; echo $?) -USING_APT=$(which apt > /dev/null; echo $?) -USING_PACMAN=$(which pacman > /dev/null; echo $?) +USING_NALA=$(type nala > /dev/null; echo $?) +USING_APT=$(type apt > /dev/null; echo $?) +USING_PACMAN=$(type pacman > /dev/null; echo $?) if [[ "$USING_NALA" == "0" ]]; then # if nala fails, try apt