From d41965e4845e6a722bcbc3ebc6e3ed21001f993b Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 22 Aug 2023 14:06:43 +0300 Subject: Cleans output from which executions --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index bed6e86..5c83654 100755 --- a/install.sh +++ b/install.sh @@ -33,13 +33,13 @@ printf "\n" packageManager="" checkPkgManager(){ printf "Searching for package manager..." - which dnf + which dnf 2> /dev/null 1>&2 if [ $? == 0 ] then printf "\tFound DNF\n" packageManager="$(which dnf)" fi - which apt + which apt 2> /dev/null 1>&2 if [ $? == 0 ] then printf "\tFound APT\n" @@ -57,7 +57,7 @@ declare -a depedencies=("curl","wget","bash","jq","node","npm","gpg","git") for dep in "${depedencies[@]}" do printf "Checking for %s..." "$dep" - which $dep + which $dep 2> /dev/null 1>&2 if [ $? -ne 0 ] then printf "\t Not found!" -- cgit v1.2.3