summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTasos Katsoulas <12612986+tkatsoulas@users.noreply.github.com>2024-01-18 15:47:58 +0200
committerGitHub <noreply@github.com>2024-01-18 15:47:58 +0200
commitb121297a5b666a4593732d54afd1cb790c2bda9a (patch)
tree400c733bb22b67c97efb3399e8e6cd783d293493
parent3558d50b106f8df5d60f0c5a8c22dee6cde69a81 (diff)
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>
-rwxr-xr-xpackaging/installer/kickstart.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/installer/kickstart.sh b/packaging/installer/kickstart.sh
index 89915ae15f..fc43368b22 100755
--- a/packaging/installer/kickstart.sh
+++ b/packaging/installer/kickstart.sh
@@ -1329,7 +1329,7 @@ netdata_avail_check() {
;;
centos|fedora|ol|amzn)
# shellcheck disable=SC2086
- ${pm_cmd} search --nogpgcheck -v netdata | grep -qE 'Repo *: netdata(-edge)?$'
+ LC_ALL=C ${pm_cmd} search --nogpgcheck -v netdata | grep -qE 'Repo *: netdata(-edge)?$'
return $?
;;
opensuse)
@@ -1345,7 +1345,7 @@ check_special_native_deps() {
if [ "${DISTRO_COMPAT_NAME}" = "centos" ] && [ "${SYSVERSION}" -gt 6 ]; then
progress "EPEL is required on this system, checking if it’s available."
- if ${pm_cmd} search --nogpgcheck -v epel-release | grep -q "No matches found"; then
+ if LC_ALL=C ${pm_cmd} search --nogpgcheck -v epel-release | grep -q "No matches found"; then
warning "Unable to find a suitable source for libuv, cannot install using native packages on this system."
return 1
else