From 9184c37c92f8915c04caaecd8827946910cc1ea4 Mon Sep 17 00:00:00 2001 From: "Austin S. Hemmelgarn" <austin@netdata.cloud> Date: Tue, 23 Apr 2024 14:05:47 +0300 Subject: [PATCH] Fix usage of sha256sum in static builds. (#17495) --- packaging/makeself/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/makeself/functions.sh b/packaging/makeself/functions.sh index c3289c7cd2..4057fbee0d 100755 --- a/packaging/makeself/functions.sh +++ b/packaging/makeself/functions.sh @@ -52,7 +52,7 @@ fetch() { # Check SHA256 of gzip'd tar file (apparently alpine's sha256sum requires # two empty spaces between the checksum and the file's path) set +e - echo "${sha256} ${NETDATA_MAKESELF_PATH}/tmp/${tar}" | sha256sum -c -s + echo "${sha256} ${NETDATA_MAKESELF_PATH}/tmp/${tar}" | sha256sum --c --status local rc=$? if [ ${rc} -ne 0 ]; then echo >&2 "SHA256 verification of tar file ${tar} failed (rc=${rc})"