From a43a28abb7457a3166c8b18fe94245e629e6acc7 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 23 Aug 2023 19:16:18 +0300 Subject: Applying work of two previous commits --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 6255de0..0d1da4d 100755 --- a/install.sh +++ b/install.sh @@ -83,7 +83,7 @@ do then dep="nodejs" fi - sudo $packageManager install -y $dep 1> /dev/null 2>&1 + $sudoBin $packageManager $installCommand $dontAskFlag $dep 1> /dev/null 2>&1 if [ $? -ne 0 ] then printf "\t Failed to install!\n" @@ -106,7 +106,7 @@ then which gpg if [ $? == 0 ] then - sudo ln -s /usr/bin/gpg /usr/bin/gpg2 + $sudoBin ln -s /usr/bin/gpg /usr/bin/gpg2 fi fi -- cgit v1.2.3