@cryptotaxi247 / netdata-1 / commits / b121297a5

Apply ASCII-based comparisons to commands in kickstart script that rely on a particular language setting (#16806)

Enforce local on command that depend on a specific language Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>

Tasos Katsoulas committed Jan 18, 2024 at 15:47 UTC b121297a5b666a4593732d54afd1cb790c2bda9a
1 file changed +2 -2
packaging/installer/kickstart.sh
+2 -2
@@ -1329,7 +1329,7 @@ netdata_avail_check() {
1329 ;;
1330 centos|fedora|ol|amzn)
1331 # shellcheck disable=SC2086
1332 - ${pm_cmd} search --nogpgcheck -v netdata | grep -qE 'Repo *: netdata(-edge)?$'
1332 + LC_ALL=C ${pm_cmd} search --nogpgcheck -v netdata | grep -qE 'Repo *: netdata(-edge)?$'
1333 return $?
1334 ;;
1335 opensuse)
@@ -1345,7 +1345,7 @@ check_special_native_deps() {
1345 if [ "${DISTRO_COMPAT_NAME}" = "centos" ] && [ "${SYSVERSION}" -gt 6 ]; then
1346 progress "EPEL is required on this system, checking if it’s available."
1347
1348 - if ${pm_cmd} search --nogpgcheck -v epel-release | grep -q "No matches found"; then
1348 + if LC_ALL=C ${pm_cmd} search --nogpgcheck -v epel-release | grep -q "No matches found"; then
1349 warning "Unable to find a suitable source for libuv, cannot install using native packages on this system."
1350 return 1
1351 else