From 391d09524574dab03a7627ecce1da0f4077b7bd0 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 4 Jan 2022 00:25:06 -0300 Subject: [PATCH] Fix typo --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 33a7c6c..4861b2f 100755 --- a/install.sh +++ b/install.sh @@ -210,7 +210,7 @@ installPackage() { ;; B) runInChroot "pacman -Q ${1}" 2>&1 | debug - [ $? -eq 0 ] && [ "$4" != "R" ] && return + [ $? -eq 0 ] && [ "$2" != "R" ] && return if [ $debugFlagToStdout = true ] || [ $debugFlag = true ]; then runInChroot "script -qec \"pacman -S --noconfirm ${1}\" /dev/null" 2>&1 | debug else @@ -219,7 +219,7 @@ installPackage() { ;; C) runInChroot "sudo -u $username paru -Q ${1}" 2>&1 | debug - [ $? -eq 0 ] && [ "$4" != "R" ] && return + [ $? -eq 0 ] && [ "$2" != "R" ] && return if [ $debugFlagToStdout = true ] || [ $debugFlag = true ]; then runInChroot "script -qec \"sudo -u $username paru -S --noconfirm --skipreview ${1}\" /dev/null" 2>&1 | debug else