@cryptotaxi247 / netdata-1 / commits / 9dc631e50

Fix netdata-updater.sh sha256sum on BSDs (#13391)

fix sha256sum on BSDs

Thomas Anderson committed Jul 18, 2022 at 07:29 UTC 9dc631e50ab9d63fad2fbe724aaaf2ffd7c657d3
1 file changed +3 -3
packaging/installer/netdata-updater.sh
+3 -3
@@ -266,10 +266,10 @@ str_in_list() {
266 safe_sha256sum() {
267 # Within the context of the installer, we only use -c option that is common between the two commands
268 # We will have to reconsider if we start non-common options
269 - if command -v sha256sum > /dev/null 2>&1; then
270 - sha256sum "$@"
271 - elif command -v shasum > /dev/null 2>&1; then
269 + if command -v shasum > /dev/null 2>&1; then
270 shasum -a 256 "$@"
271 + elif command -v sha256sum > /dev/null 2>&1; then
272 + sha256sum "$@"
273 else
274 fatal "I could not find a suitable checksum binary to use" U0002
275 fi