Skip to content

Commit ac77845

Browse files
authored
Fixed Bug
1 parent 4a8238d commit ac77845

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ cleanup_snapd() {
8787
return
8888
fi
8989

90-
# Check if no snaps are installed
91-
if echo "${snap_output}" | grep -q "No snaps are installed"; then
90+
# Check if no snaps are installed (only header line present)
91+
if [ "$(echo "${snap_output}" | wc -l)" -le 1 ]; then
9292
return
9393
fi
9494

0 commit comments

Comments
 (0)