Migration from restart_services to restart-services and removing colors

This commit is contained in:
Alarig Le Lay 2018-04-11 11:16:47 +02:00
parent cc65f3fb98
commit e17deddef5
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
#!/bin/sh
PATH="$PATH:/usr/sbin:/sbin"
TERM=vt100
TMP_FILE=$(mktemp)
MAIL=$(mktemp)
@ -22,7 +21,7 @@ if [ "$(grep '\[ebuild U' ${TMP_FILE})" != '' ]; then
cat ${TMP_FILE} >> ${MAIL}
if [ "$(lsof -n | awk '{ if ($5 == "DEL") print $9 }' | sort -u)" ]; then
restart_services -u >> ${MAIL}
restart-services --no-color -u >> ${MAIL}
fi
emerge -p --depclean --with-bdeps\=y >> ${MAIL}