Created
October 1, 2020 09:28
-
-
Save marcusscomputer/f3dd22bdc7fe55e7416ae09f12cf3a3e to your computer and use it in GitHub Desktop.
Script that shows number of updates in i3blocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf /tmp/apt | |
APTU=`apt list --upgradable | wc -l` | |
APT=`expr $APTU - 1 > /tmp/apt` | |
cat /tmp/apt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment