Skip to content

Commit 49422ac

Browse files
authored
updates-flatpak: output correction about update numbers
1 parent c422917 commit 49422ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polybar-scripts/updates-flatpak/updates-flatpak.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
updates=$(echo 'n' | flatpak update 2>/dev/null | tail -n +5 | head -2 | wc -l)
3+
updates=$(flatpak update 2>/dev/null | tail -n +5 | grep -Ecv "^$|^Proceed|^Nothing")
44

55
if [ "$updates" -gt 0 ]; then
66
echo "flatpak: $updates"

0 commit comments

Comments
 (0)