Update package database before displaying updates
This commit is contained in:
parent
47fd54ea4f
commit
a607511c01
@ -493,6 +493,7 @@
|
|||||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
:END:
|
:END:
|
||||||
#+BEGIN_SRC bash
|
#+BEGIN_SRC bash
|
||||||
|
yay -Sy && \
|
||||||
package_nb=`yay -Qu 2> /dev/null | wc -l`;
|
package_nb=`yay -Qu 2> /dev/null | wc -l`;
|
||||||
|
|
||||||
if [ "$package_nb" -eq "0" ]; then
|
if [ "$package_nb" -eq "0" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user