Update 90-footer

This commit is contained in:
Molly Lau 2023-10-12 20:15:06 +09:00 committed by GitHub
parent cef9ac8b88
commit 4c9d255251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@
UpdateLog="/var/log/PackagesUpdatingStatus.log"
[[ -f "$UpdateLog" ]] && rm -rf $UpdateLog
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)
UpdateNum=$(expr $UpdateRemind - 1)