Skip to content

Commit

Permalink
Fix download url
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Jan 1, 2024
1 parent ed7a3ae commit 7f93e34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ jobs:
build-image:
needs: [build-package]

if: ${{ github.event_name != 'pull_request' }}
# Commented out for testing
# if: ${{ github.event_name != 'pull_request' }}

strategy:
fail-fast: false
matrix:
Expand Down
4 changes: 2 additions & 2 deletions scripts/generatePiImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ NEW_JAR=$(realpath $(find . -name photonvision\*-linuxarm64.jar))
echo "Using jar: " $NEW_JAR
echo "Downloading image from" $1
sudo apt-get install -y xz-utils
curl -sk $1 | grep "browser_download_url.*xz" | cut -d : -f 2,3 | tr -d '"' | wget -qi -
wget $1
ls
FILE_NAME=$(ls | grep image_*.xz)
FILE_NAME=$(ls | grep *.xz)

if [ -z "$FILE_NAME" ]
then
Expand Down

0 comments on commit 7f93e34

Please sign in to comment.