Update 90-footer

This commit is contained in:
Molly Lau 2022-11-19 02:28:55 +09:00 committed by GitHub
parent b3b93c3281
commit 1ab1017b6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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