mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 05:34:34 +08:00
Update 90-footer
This commit is contained in:
parent
b3b93c3281
commit
1ab1017b6a
1 changed files with 3 additions and 3 deletions
|
@ -25,9 +25,9 @@ fi
|
|||
|
||||
apt list --upgradable | awk 'END{print NR}' | tee -a "$UpdateLog" > /dev/null 2>&1
|
||||
UpdateRemind=`cat $UpdateLog | tail -n 1`
|
||||
Result=$(echo $UpdateRemind)
|
||||
if [ "$Result" -ge "1" ]; then
|
||||
printf "$UpdateRemind packages can be upgraded. Run 'apt list --upgradable' to see them.\n"
|
||||
UpdateNum=`expr $UpdateRemind - 1`
|
||||
if [ "$UpdateNum" -ge "1" ]; then
|
||||
printf "$UpdateNum packages can be upgraded. Run 'apt list --upgradable' to see them.\n"
|
||||
fi
|
||||
|
||||
rm -rf $UpdateLog
|
||||
|
|
Loading…
Reference in a new issue