mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 13:44:50 +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
|
apt list --upgradable | awk 'END{print NR}' | tee -a "$UpdateLog" > /dev/null 2>&1
|
||||||
UpdateRemind=`cat $UpdateLog | tail -n 1`
|
UpdateRemind=`cat $UpdateLog | tail -n 1`
|
||||||
Result=$(echo $UpdateRemind)
|
UpdateNum=`expr $UpdateRemind - 1`
|
||||||
if [ "$Result" -ge "1" ]; then
|
if [ "$UpdateNum" -ge "1" ]; then
|
||||||
printf "$UpdateRemind packages can be upgraded. Run 'apt list --upgradable' to see them.\n"
|
printf "$UpdateNum packages can be upgraded. Run 'apt list --upgradable' to see them.\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf $UpdateLog
|
rm -rf $UpdateLog
|
||||||
|
|
Loading…
Reference in a new issue