Skip to content

Commit

Permalink
get the version from the url
Browse files Browse the repository at this point in the history
  • Loading branch information
dthomasngrokker committed Jan 26, 2025
1 parent 00265d1 commit 6223d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ parts:
- on amd64 to s390x: https://bin.equinox.io/a/kLoGADrsu9d/ngrok-v3-3.19.1-linux-s390x.zip
override-pull: |
craftctl default
VERSION=$(echo $CRAFT_SOURCE | grep -o 'ngrok-v3-[0-9.]*' | cut -d'-' -f3)
VERSION=$(find . -name "ngrok-v3-*.zip" | head -n1 | grep -o 'ngrok-v3-[0-9.]*' | cut -d'-' -f3)
craftctl set version=$VERSION
plugs:
Expand Down

0 comments on commit 6223d1a

Please sign in to comment.