We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc83abd commit 2e99e89Copy full SHA for 2e99e89
1 file changed
install-cli.sh
@@ -42,7 +42,11 @@ else
42
echo "Detecting the latest version of Kosli CLI..."
43
debug_print "Fetching latest version from GitHub API"
44
# Fetches the latest release tag from the GitHub API
45
- LATEST_TAG=$(curl -s "https://api.github.com/repos/kosli-dev/cli/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
+ METADATA=$(curl -s "https://api.github.com/repos/kosli-dev/cli/releases/latest")
46
+ debug_print "GitHub API response: $METADATA"
47
+ TAG_NAME=$(echo "$METADATA" | grep '"tag_name":')
48
+ debug_print "GitHub API response tag: $TAG_NAME"
49
+ LATEST_TAG=$(echo "$TAG_NAME" | sed -E 's/.*"([^"]+)".*/\1/')
50
debug_print "GitHub API response tag: $LATEST_TAG"
51
if [ -z "$LATEST_TAG" ]; then
52
echo "Error: Could not fetch the latest version tag from GitHub."
0 commit comments