@cryptotaxi247 / netdata-1 / commits / 6fe8c7d0e

netdata/packaging: Fix non compatible function declaration (#5789)

1)remove function keyword 2)update README.md

Paul Emm. Katsoulakis committed Apr 3, 2019 at 15:00 UTC 6fe8c7d0e808449196d76eb93ebe80a11eec9ade
5 files changed +6 -6
packaging/installer/README.md
+2 -2
@@ -42,7 +42,7 @@ bash <(curl -Ss https://my-netdata.io/kickstart.sh)
42 Verify the integrity of the script with this:
43
44 ```bash
45 -[ "4e339c2e66192c122484476ef48b6843" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
45 +[ "15c688e7228ebee83ace1811273cd089" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
46 ```
47 *It should print `OK, VALID` if the script is the one we ship.*
48
@@ -96,7 +96,7 @@ To install Netdata with a binary package on any Linux distro, any kernel version
96 Verify the integrity of the script with this:
97
98 ```bash
99 -[ "9a8fec4af9aba11614381f9cd187a68b" = "$(curl -Ss https://my-netdata.io/kickstart-static64.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
99 +[ "97427a0fc5a52593b603c2ae887d4466" = "$(curl -Ss https://my-netdata.io/kickstart-static64.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
100 ```
101
102 *It should print `OK, VALID` if the script is the one we ship.*
packaging/installer/functions.sh
+1 -1
@@ -680,7 +680,7 @@ portable_add_user_to_group() {
680 }
681
682
683 -function safe_sha256sum() {
683 +safe_sha256sum() {
684 # Within the contexct of the installer, we only use -c option that is common between the two commands
685 # We will have to reconsider if we start non-common options
686 if command -v sha256sum >/dev/null 2>&1; then
packaging/installer/kickstart-static64.sh
+1 -1
@@ -111,7 +111,7 @@ set_tarball_urls() {
111 fi
112 }
113
114 -function safe_sha256sum() {
114 +safe_sha256sum() {
115 # Within the contexct of the installer, we only use -c option that is common between the two commands
116 # We will have to reconsider if we start non-common options
117 if command -v sha256sum >/dev/null 2>&1; then
packaging/installer/kickstart.sh
+1 -1
@@ -204,7 +204,7 @@ dependencies() {
204 fi
205 }
206
207 -function safe_sha256sum() {
207 +safe_sha256sum() {
208 # Within the contexct of the installer, we only use -c option that is common between the two commands
209 # We will have to reconsider if we start non-common options
210 if command -v sha256sum >/dev/null 2>&1; then
packaging/installer/netdata-updater.sh
+1 -1
@@ -20,7 +20,7 @@ error() {
20 echo >&3 "$(date) : ERROR: " "${@}"
21 }
22
23 -function safe_sha256sum() {
23 +safe_sha256sum() {
24 # Within the contexct of the installer, we only use -c option that is common between the two commands
25 # We will have to reconsider if we start non-common options
26 if command -v sha256sum >/dev/null 2>&1; then