[before] $ pacman -Qq --noconfirm wget wget $ echo $? 0
[after] $ pacman -Qq --noconfirm wget > /dev/null $ echo $? 0
Signed-off-by: Wang Yong wangyong0117@qq.com --- distro/archlinux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/distro/archlinux b/distro/archlinux index 43c3aa13a..59c8da1d6 100755 --- a/distro/archlinux +++ b/distro/archlinux @@ -88,7 +88,7 @@ distro_install_depends()
for pkg in $packages do - pacman -Qq --noconfirm $pkg || pacman -Sy --noconfirm $pkg + pacman -Qq --noconfirm $pkg > /dev/null || pacman -Sy --noconfirm $pkg done done }