check_updates.sh: compter c’est pas facile

This commit is contained in:
Alarig Le Lay 2021-06-28 17:56:37 +02:00
parent 17a84e9e6e
commit 379e907cc5
No known key found for this signature in database
GPG key ID: C865491BF197B54F

View file

@ -28,7 +28,7 @@ if [ "$(grep '\[ebuild U' ${TMP_FILE})" != '' ]; then
printf "\n" >> ${MAIL}
cat ${TMP_FILE} >> ${MAIL}
if [ "$(lsof -n | awk '{ if ($5 == "DEL") print $9 }' | sort -u)" ]; then
if [ "$(lsof -n | awk '{ if ($6 == "DEL") print $9 }' | sort -u)" ]; then
restart-services --no-color >> ${MAIL}
fi