Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Kfir Toledo <[email protected]>
  • Loading branch information
kfirtoledo committed Mar 4, 2024
1 parent db1f68f commit f67b841
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./hack/clusterlink.sh
file: ./hack/install_clusterlink.sh
asset_name: clusterlink.sh
tag: ${{ github.ref }}
overwrite: true
Expand Down
8 changes: 7 additions & 1 deletion hack/clusterlink.sh → hack/install_clusterlink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,15 @@ rm "${filename}"
current_path=$(pwd)/clusterlink

install_path=${HOME}/.local/bin
# Check if the .local/bin exists, if not, create it.
if [ ! -d "$install_path" ]; then
mkdir -p "$install_path" || { echo "Error: Failed to create directory $install_path"; exit 1; }
fi

mv $current_path/* $install_path
rm -rf $current_path


# Installation summary.
printf "\n"
printf "\e[1;34m.----. .----. .-. . .-..-. .-..-. .----. .--. .----. .---. .----. .-. .-..----. .-. .----..---. .----.\n"
Expand All @@ -65,7 +71,7 @@ printf "\n\n"

printf "%s has been successfully downloaded.\n" "$filename"
printf "\n"
printf "ClusterLink CLI (gwctl and cl-adm) added to your environment path:\n"
printf "ClusterLink CLI (gwctl and cl-adm) has been installed in the following directory:\n"
printf "\n"
printf "\t\e[1;33m%s\n\e[0m" "$install_path"
printf "\n"
Expand Down

0 comments on commit f67b841

Please sign in to comment.