1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00

sysutils/amrstat: Fix periodic script

Replace a GNU-specific option with more generic option.

PR:		258625
This commit is contained in:
Leonid Nevecherya 2021-09-20 17:44:17 -04:00 committed by Jung-uk Kim
parent 01e5dfaad7
commit 3be4a4bdee
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= amrstat
PORTVERSION= 20070216
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= LOCAL/jkim

View File

@ -46,7 +46,7 @@ case "$daily_status_amr_raid_enable" in
esac
fi
lines=`wc -l ${ctrl_log}.today | awk '{ print $1 }'`
diff -u -${lines} ${ctrl_log}.yesterday ${ctrl_log}.today
diff -U ${lines} ${ctrl_log}.yesterday ${ctrl_log}.today
raid_rc=$?
if test $raid_rc -eq 0; then
cat ${ctrl_log}.today