Skip to content

Commit

Permalink
Merge pull request #2 from nicolaferraro/no-debug
Browse files Browse the repository at this point in the history
Disable debug
  • Loading branch information
nicolaferraro authored Jul 14, 2021
2 parents c7916f8 + fa9fddc commit af14881
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ set -o errexit
set -o nounset
set -o pipefail

set -x

DEFAULT_VERSION=latest

show_help() {
cat << EOF
Usage: $(basename "$0") <options>
-h, --help Display help
-v, --version The Camel K version to use (default: $DEFAULT_VERSION)"
-v, --version The Camel K version to use (default: $DEFAULT_VERSION)
--github-token Optional token used when fetching the latest Camel K release to avoid hitting rate limits
EOF
}
Expand Down Expand Up @@ -81,12 +80,6 @@ install_camel_k() {
info=
if [[ "$version" = "latest" ]]
then
#echo "--- $GITHUB_TOKEN ---"
#curl -H "Authorization: $GITHUB_TOKEN" --silent "https://api.github.com/repos/apache/camel-k/releases/latest"
#echo "----"
#curl --silent "https://api.github.com/repos/apache/camel-k/releases/latest"
#curl --silent "https://api.github.com/repos/apache/camel-k/releases/latest" | grep '"tag_name":'
#curl --silent "https://api.github.com/repos/apache/camel-k/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'
if [[ -z "$github_token" ]]
then
install_version=$(curl --silent "https://api.github.com/repos/apache/camel-k/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
Expand Down

0 comments on commit af14881

Please sign in to comment.