diff --git a/build.sh b/build.sh index cc384db..570b970 100644 --- a/build.sh +++ b/build.sh @@ -67,7 +67,7 @@ if [ ! -d "$TARGET_DIR" ]; then fi if test_command "gh" && test_gh_auth; then - gh release download --repo "$REPO_OWNER/$REPO_NAME" --pattern "*$ARTIFACT_NAME_PATTERN*" --clobber --output - | tar -zxv -C "$TARGET_DIR" + gh release download --repo "github.com/$REPO_OWNER/$REPO_NAME" --pattern "*$ARTIFACT_NAME_PATTERN*" --clobber --output - | tar -zxv -C "$TARGET_DIR" else # Get the artifact download URL ARTIFACT_URL=$(curl -s "https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/releases/latest" | grep "browser_download_url" | cut -d '"' -f 4 | grep $ARTIFACT_NAME_PATTERN)