Skip to content
Permalink
Browse files

the command has moved into cmd/ks as of 0.10.0

  • Loading branch information...
kalbasit authored and nikolay committed May 31, 2018
1 parent 9616972 commit 17c6278870407897ac5a4799f2c16b5139a0773b
Showing with 8 additions and 2 deletions.
  1. +8 −2 bin/install
@@ -38,9 +38,15 @@ install () {
unzip -qq "${download_path}" -d "${source_base_path}"
mv "${source_base_path}/${toolname}-${version}" "${source_path}"

if [[ -d "${source_path}/cmd/ks" ]]; then
local -r bin_path="${source_path}/cmd/ks"
else
local -r bin_path="${source_path}"
fi

echo "Compiling version ${version} of ${toolname}"
( \
cd "${source_path}" \
cd "${bin_path}" \
&& export GOPATH="${TMP_DOWNLOAD_DIR}" \
&& go build -ldflags="-X main.version=${version}"
)
@@ -52,7 +58,7 @@ install () {
mkdir -p "${bin_install_path}"

local f
for f in "${source_path}"/*; do
for f in "${bin_path}"/*; do
if [[ -f "${f}" ]] \
&& [[ -x "${f}" ]]; then
cp "${f}" "${bin_install_path}"

0 comments on commit 17c6278

Please sign in to comment.
You can’t perform that action at this time.