upraven update skript a readme soubor
This commit is contained in:
15
utilities/check_updates.sh
Normal file
15
utilities/check_updates.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
##################################################################################################################
|
||||
# Author : Archos
|
||||
# Website : https://arch-linux.cz
|
||||
##################################################################################################################
|
||||
##################################################################################################################
|
||||
# Získá počet dostupných aktualizací
|
||||
updates=$(checkupdates | wc -l)
|
||||
|
||||
if [ "$updates" -gt 0 ]; then
|
||||
echo "$updates updates available"
|
||||
else
|
||||
echo "System up-to-date"
|
||||
fi
|
Reference in New Issue
Block a user