Skip to content

Commit

Permalink
build/get_new_operator_sdk.sh: Use readlink to get absolute path
Browse files Browse the repository at this point in the history
The REL var provides a relative path, using readlink converts this to an absolute path instead
  • Loading branch information
elfiesmelfie committed Jun 27, 2023
1 parent 67e0db6 commit 731d0d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/get_new_operator_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
set -x

REL=$(dirname "$0")
readlink -f ${REL}
REL=$( readlink -f $(dirname "$0"))

ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac)
OS=$(uname | awk '{print tolower($0)}')
VERSION="${1:-v1.5.0}"
Expand Down

0 comments on commit 731d0d3

Please sign in to comment.