From 379e907cc591da90c8fe1ee0d2d65f82d0c3e591 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Mon, 28 Jun 2021 17:56:37 +0200 Subject: [PATCH] =?UTF-8?q?check=5Fupdates.sh:=20compter=20c=E2=80=99est?= =?UTF-8?q?=20pas=20facile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check_updates.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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