From dfe2a8782050a80b1de5f977e94f9a7657994c43 Mon Sep 17 00:00:00 2001 From: John McQuah Date: Tue, 13 Feb 2024 15:07:46 +0000 Subject: [PATCH] prtrej: use cmp instead of diff --- scripts/prtrej | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/prtrej b/scripts/prtrej index 875dbe1..4d64d4c 100755 --- a/scripts/prtrej +++ b/scripts/prtrej @@ -1,8 +1,9 @@ #!/bin/bash # -# $Id: prtrej,v 1.4 2004/02/06 11:30:00 opel Exp $ -# (c) 2003,2004 by Martin Opel +# $Id: prtrej,v 1.4 2023/12/21 01:30:00 jmq Exp $ # (c) 2002 by Markus Ackermann +# (c) 2003,2004 by Martin Opel +# (c) 2023 by John McQuah # # may be redistributed and modified under the terms of the GPL # only usable with CRUX Linux, version 0.9.2 or higher @@ -57,7 +58,7 @@ for reject in "${REJECTS[@]}"; do # This cleanup could be incorporated directly into pkgrm, but until that # happens we might as well do the cleanup here. # - if [ ! -e "$real" ] || diff "$real" "$reject" >/dev/null; then + if [ ! -e "$real" ] || cmp -s "$real" "$reject"; then rm "$reject" count=$(( count + 1 )) else