Update package database before displaying updates
This commit is contained in:
parent
0846008c78
commit
426b78f4e8
@ -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