Skip to content

Commit c9efadb

Browse files
authored
Follow redirect (#12)
1 parent c6a3de1 commit c9efadb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cursor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function get_download_info() {
102102
local api_url="https://www.cursor.com/api/download?platform=linux-$(get_arch)&releaseTrack=$release_track"
103103

104104
echo "Fetching download info for $release_track track..."
105-
if ! curl -s "$api_url" -o "$temp_file"; then
105+
if ! curl -sL "$api_url" -o "$temp_file"; then
106106
rm -f "$temp_file"
107107
get_fallback_download_info "curl failed on $api_url"
108108
return 1

0 commit comments

Comments
 (0)