Skip to content

Commit 3493a13

Browse files
authored
Debian: apt update not working
1 parent f93c838 commit 3493a13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ update_snapd() {
142142
update_os_pkg() {
143143
case "${ADJUSTED_ID}" in
144144
debian)
145-
if [ "$(find /var/lib/apt/lists/ -maxdepth 1 -type f 2>/dev/null | wc -l)" -eq 0 ]; then
145+
if [ "$(find /var/lib/apt/lists/* -maxdepth 1 -type f 2>/dev/null | wc -l)" -eq 0 ]; then
146146
println "Updating ${PKG_MGR_CMD} based packages..."
147147
if ! ("${PKG_MGR_CMD}" update -y &&
148148
"${PKG_MGR_CMD}" upgrade -y &&

0 commit comments

Comments
 (0)