Skip to content

Commit f93c838

Browse files
authored
Fix Update mindepth if not cleaned up (#90)
2 parents 38400e5 + 1c3b086 commit f93c838

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/* -mindepth 1 -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)