Skip to content

Commit f61766d

Browse files
committed
update script
1 parent 977d69c commit f61766d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ mkdir -p "$INSTALL_DIR"
6868

6969
# Determine version and download URL
7070
if [ -z "$requested_version" ]; then
71-
url="https://github.com/devcontainer-community/feature-installer/releases/latest/download/$filename"
7271
if ! specific_version=$(curl -s https://api.github.com/repos/devcontainer-community/feature-installer/releases/latest | awk -F'"' '/"tag_name": "/ {gsub(/^v/, "", $4); print $4}') || [[ -z "$specific_version" ]]; then
7372
echo -e "${RED}Failed to fetch version information${NC}"
7473
exit 1
7574
fi
75+
url="https://github.com/devcontainer-community/feature-installer/releases/download/v${specific_version}/$filename"
7676
else
77-
url="https://github.com/devcontainer-community/feature-installer/releases/download/v${requested_version}/$filename"
7877
specific_version=$requested_version
78+
url="https://github.com/devcontainer-community/feature-installer/releases/download/v${requested_version}/$filename"
7979
fi
8080

8181

0 commit comments

Comments
 (0)