changed to setup script to /etc/skel
This commit is contained in:
13
arch_check/.config/polybar/scripts/check-arch-updates.sh
Executable file
13
arch_check/.config/polybar/scripts/check-arch-updates.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
#source https://github.com/x70b1/polybar-scripts
|
||||
#source https://github.com/polybar/polybar-scripts
|
||||
|
||||
if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then
|
||||
updates_arch=0
|
||||
fi
|
||||
|
||||
if [ $updates_arch -gt 0 ]; then
|
||||
echo $updates_arch
|
||||
else
|
||||
echo "0"
|
||||
fi
|
||||
Reference in New Issue
Block a user