: nply/minci

commit 7223bcf48ed79ec6b11b07449b8f7ad111fc91e4
parent f952ea1188be221a0dc9bf4d9690f6ee88635db8
Author: kristapsdz <kristaps@bsd.lv>
Date: Tue, 3 Mar 2020 15:34:01 +0000

Don't rely on md5(1).
1 file changed, 2 insertions(+), 2 deletions(-)
M
minci.sh
|
4
++--
diff --git a/minci.sh b/minci.sh
@@ -225,9 +225,9 @@ do
 	QUERY="${QUERY}&report-install=${TIME_install}"
 	if [ $TIME_distcheck -eq 0 ]
 	then
-		QUERY="${QUERY}&report-log=`md5 -q /tmp/minci.log`"
+		QUERY="${QUERY}&report-log=`openssl dgst -md5 -hex /tmp/minci.log | sed 's!^[^=]*= !!'`"
 	else
-		QUERY="${QUERY}&report-log=`md5 -q /dev/null`"
+		QUERY="${QUERY}&report-log=`openssl dgst -md5 -hex /dev/null | sed 's!^[^=]*= !!'`"
 	fi
 	QUERY="${QUERY}&report-start=${TIME_start}"
 	QUERY="${QUERY}&report-test=${TIME_test}"