check whether diff accepts -N

This commit is contained in:
Damien Miller committed 2025-10-13 14:33:04 +11:00
1 parent cd8c96f283
commit da2f945f62
1 file changed
+5
+5
View File
@@ -8,6 +8,11 @@ DIR=${COPY}.dd
DIR2=${COPY}.dd2
DIFFOPT="-rN"
# Figure out if diff does not understand "-N"
if ! diff -N ${SRC}/scp.sh ${SRC}/scp.sh 2>/dev/null; then
DIFFOPT="-r"
fi
maybe_add_scp_path_to_sshd
SRC=`dirname ${SCRIPT}`