update: do not error out if there is no update.d scripts

This commit is contained in:
crater2150 2024-06-19 12:32:08 +02:00
parent 3150cabcd1
commit f29fb956fd

View file

@ -64,7 +64,7 @@ xbps-update () {
}
misc-update() {
for i in ${XDG_CONFIG_HOME}/update.d/*; do
for i in ${XDG_CONFIG_HOME}/update.d/*(N); do
if [[ -x $i ]]; then
info "Running updater: ${i:t}"
$i $auto