Update package database before displaying updates

This commit is contained in:
Thomas Dehaeze 2020-04-01 10:27:02 +02:00
parent 47fd54ea4f
commit a607511c01

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