We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c422917 commit 49422acCopy full SHA for 49422ac
polybar-scripts/updates-flatpak/updates-flatpak.sh
@@ -1,6 +1,6 @@
1
#!/bin/sh
2
3
-updates=$(echo 'n' | flatpak update 2>/dev/null | tail -n +5 | head -2 | wc -l)
+updates=$(flatpak update 2>/dev/null | tail -n +5 | grep -Ecv "^$|^Proceed|^Nothing")
4
5
if [ "$updates" -gt 0 ]; then
6
echo "flatpak: $updates"
0 commit comments