Update package database before displaying updates

This commit is contained in:
Thomas Dehaeze 2020-04-01 10:27:02 +02:00
parent 0846008c78
commit 426b78f4e8

View File

@ -493,6 +493,7 @@
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+BEGIN_SRC bash
yay -Sy && \
package_nb=`yay -Qu 2> /dev/null | wc -l`;
if [ "$package_nb" -eq "0" ]; then