修正 install_pkg 的返回值

This commit is contained in:
bin456789 2023-06-22 20:56:22 +08:00
parent b617858c89
commit 6164b0c301
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -291,7 +291,8 @@ install_pkg() {
pacman -Syu --noconfirm $pkgs ||
apk add $pkgs
} 2>/dev/null
break
# break 返回值始终为 0
return
fi
done
}