@cryptotaxi247 / netdata-1 / commits / 7a0fa0012

Fix incorrect function names in netdata-updater.sh.

Austin S. Hemmelgarn committed Mar 7, 2022 at 20:36 UTC 7a0fa001284b32db450615b1a920c7ef5f7e4111
1 file changed +4 -4
packaging/installer/netdata-updater.sh
+4 -4
@@ -135,7 +135,7 @@ install_build_dependencies() {
135 bash="$(command -v bash 2> /dev/null)"
136
137 if [ -z "${bash}" ] || [ ! -x "${bash}" ]; then
138 - warning "Unable to find a usable version of \`bash\` (required for local build)."
138 + error "Unable to find a usable version of \`bash\` (required for local build)."
139 return 1
140 fi
141
@@ -143,7 +143,7 @@ install_build_dependencies() {
143 download "${PACKAGES_SCRIPT}" "${TMPDIR}/install-required-packages.sh" || true
144
145 if [ ! -s "${TMPDIR}/install-required-packages.sh" ]; then
146 - warning "Downloaded dependency installation script is empty."
146 + error "Downloaded dependency installation script is empty."
147 else
148 info "Running dependency handling script..."
149
@@ -152,8 +152,8 @@ install_build_dependencies() {
152 fi
153
154 # shellcheck disable=SC2086
155 - if ! run "${bash}" "${TMPDIR}/install-required-packages.sh" ${opts} netdata; then
156 - warning "Installing build dependencies failed. The update should still work, but you might be missing some features."
155 + if ! "${bash}" "${TMPDIR}/install-required-packages.sh" ${opts} netdata; then
156 + error "Installing build dependencies failed. The update should still work, but you might be missing some features."
157 fi
158 fi
159 }