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

View file

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