Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Sep 2021 21:54:31 GMT
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3be4a4bdee2e - main - sysutils/amrstat: Fix periodic script
Message-ID:  <202109202154.18KLsVNV041948@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jkim:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3be4a4bdee2e4c5009ca6f6386c57c90acf07a9a

commit 3be4a4bdee2e4c5009ca6f6386c57c90acf07a9a
Author:     Leonid Nevecherya <nevecherya@gmail.com>
AuthorDate: 2021-09-20 21:44:17 +0000
Commit:     Jung-uk Kim <jkim@FreeBSD.org>
CommitDate: 2021-09-20 21:53:58 +0000

    sysutils/amrstat: Fix periodic script
    
    Replace a GNU-specific option with more generic option.
    
    PR:             258625
---
 sysutils/amrstat/Makefile                     | 1 +
 sysutils/amrstat/files/407.status-amr-raid.in | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/sysutils/amrstat/Makefile b/sysutils/amrstat/Makefile
index 6a64fe7abe73..5720e2928017 100644
--- a/sysutils/amrstat/Makefile
+++ b/sysutils/amrstat/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	amrstat
 PORTVERSION=	20070216
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	LOCAL/jkim
 
diff --git a/sysutils/amrstat/files/407.status-amr-raid.in b/sysutils/amrstat/files/407.status-amr-raid.in
index af1a5d1e9c22..9f3bf62558a1 100644
--- a/sysutils/amrstat/files/407.status-amr-raid.in
+++ b/sysutils/amrstat/files/407.status-amr-raid.in
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109202154.18KLsVNV041948>