Fix usage of sha256sum in static builds. (#17495)
Austin S. Hemmelgarn committed
Apr 23, 2024 at 14:05 UTC
9184c37c92f8915c04caaecd8827946910cc1ea4
1 file changed
+1
-1
packaging/makeself/functions.sh
+1
-1
@@ -52,7 +52,7 @@ fetch() {
52
# Check SHA256 of gzip'd tar file (apparently alpine's sha256sum requires
53
# two empty spaces between the checksum and the file's path)
54
set +e
55
- echo "${sha256} ${NETDATA_MAKESELF_PATH}/tmp/${tar}" | sha256sum -c -s
55
+ echo "${sha256} ${NETDATA_MAKESELF_PATH}/tmp/${tar}" | sha256sum --c --status
56
local rc=$?
57
if [ ${rc} -ne 0 ]; then
58
echo >&2 "SHA256 verification of tar file ${tar} failed (rc=${rc})"