This commit is contained in:
Santiago Lo Coco 2022-01-04 00:25:06 -03:00
parent d254074e7a
commit 391d095245
1 changed files with 2 additions and 2 deletions

View File

@ -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