From 3493a13ea7c8e94fb28d215ade09757011493916 Mon Sep 17 00:00:00 2001 From: Vatsal Gupta <40350810+gvatsal60@users.noreply.github.com> Date: Fri, 19 Sep 2025 11:42:19 +0000 Subject: [PATCH] Debian: apt update not working --- .update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.update.sh b/.update.sh index c360f26..83056ed 100755 --- a/.update.sh +++ b/.update.sh @@ -142,7 +142,7 @@ update_snapd() { update_os_pkg() { case "${ADJUSTED_ID}" in debian) - if [ "$(find /var/lib/apt/lists/ -maxdepth 1 -type f 2>/dev/null | wc -l)" -eq 0 ]; then + if [ "$(find /var/lib/apt/lists/* -maxdepth 1 -type f 2>/dev/null | wc -l)" -eq 0 ]; then println "Updating ${PKG_MGR_CMD} based packages..." if ! ("${PKG_MGR_CMD}" update -y && "${PKG_MGR_CMD}" upgrade -y &&