Skip to content

Commit

Permalink
Merge pull request #215 from dhaiducek/escape-oc-install
Browse files Browse the repository at this point in the history
Fix non-escaped characters in `oc/install`
  • Loading branch information
Kyl-Bempah authored Jul 3, 2024
2 parents f999b8a + 7c86eb3 commit c1d2719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/oc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ OC_SILENT ?= true
oc/install: %install:
@if [ ! -x $(OC) ]; then \
OC_BINARY="openshift-client-${OC_PLATFORM}"; \
if command -v ldd &>/dev/null; then \
OC_LIBC_VERSION="$$(ldd --version | head -1 | awk '{print $NF}')"; \
if command -v ldd $&>/dev/null; then \
OC_LIBC_VERSION="$$(ldd --version | head -1 | awk '{print $$NF}')"; \
fi; \
if [ -n "$${OC_LIBC_VERSION}" ] && [ "$${OC_LIBC_VERSION%\.*}" -le "2" ] && [ "$${OC_LIBC_VERSION#*\.}" -lt "32" ]; then \
OC_BINARY="$${OC_BINARY}-${BUILD_HARNESS_ARCH}-rhel8"; \
Expand Down

0 comments on commit c1d2719

Please sign in to comment.