Skip to content

Commit

Permalink
Apply ASCII-based comparisons to commands in kickstart script that re…
Browse files Browse the repository at this point in the history
…ly on a particular language setting (netdata#16806)

Enforce local on command that depend on a specific language

Signed-off-by: Tasos Katsoulas <[email protected]>
  • Loading branch information
tkatsoulas authored Jan 18, 2024
1 parent 3558d50 commit b121297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/installer/kickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit b121297

Please sign in to comment.