Removed "-" argument to "cksum" for FreeBSD compatibility.

This commit is contained in:
Andrew Wood
2023-09-13 23:04:00 +01:00
parent c6315365e2
commit 2942c312a7
+1 -1
View File
@@ -12,7 +12,7 @@ testSubject="${testSubject:-false}"; workFile1="${workFile1:-.tmp1}"; workFile2=
dd if=/dev/urandom of="${workFile1}" bs=1024 count=2560 2>/dev/null
inputChecksum=$(cksum "${workFile1}" | awk '{print $1}')
doubleInputChecksum=$(cat "${workFile1}" "${workFile1}" | cksum - | awk '{print $1}')
doubleInputChecksum=$(cat "${workFile1}" "${workFile1}" | cksum | awk '{print $1}')
# read through pv and test afterwards
"${testSubject}" -q "${workFile1}" > "${workFile2}"