Skip to content

Commit

Permalink
remove url variable
Browse files Browse the repository at this point in the history
Signed-off-by: muthuja <[email protected]>
  • Loading branch information
muthuja committed Feb 5, 2025
1 parent 696bda5 commit 8b96bed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .expeditor/scripts/build-infra-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ download_migration_tool_from_github_releases() {
echo "$GITHUB_TOKEN"

if [ -z "${GITHUB_TOKEN:-}" ]; then
echo "GITHUB_TOKEN is not set. Cannot download migration tool from $url"
echo "GITHUB_TOKEN is not set. Cannot download migration tool from"
exit 1
fi

echo "fetching latest release of migration tool"
if ! curl -fSL -H "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/chef/migration-tools/releases/latest" -o migration-tool-latest-release.json; then
echo "Error: Failed to fetch latest release information of migration tools from $url"
echo "Error: Failed to fetch latest release information of migration tools from"
exit 1
fi
latest_version=$(cat migration-tool-latest-release.json | jq -r '.tag_name')
Expand All @@ -63,7 +63,7 @@ download_migration_tool_from_github_releases() {
if ! cat migration-tool-latest-release.json \
| jq '.assets[] | select (.name == "migration-tools_Linux_x86_64.tar.gz") | .url' \
| xargs curl -fSL -H "Authorization: Bearer $GITHUB_TOKEN" -H "Accept: application/octet-stream" -o "$output_path"; then
echo "Error: Failed to download latest release '$latest_version' of migration tools from $url"
echo "Error: Failed to download latest release '$latest_version' of migration tools from"
exit 1
fi

Expand Down

0 comments on commit 8b96bed

Please sign in to comment.