diff --git a/check_updates.sh b/check_updates.sh index a4c9d20..ee503b1 100755 --- a/check_updates.sh +++ b/check_updates.sh @@ -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