Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
hemnstill committed Jun 9, 2024
1 parent 0567c21 commit 7247236
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Etcher/create_install.sh → balenaEtcher/create_install.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd "$dp0"

latest_version=https://api.github.com/repos/balena-io/etcher/releases/latest
echo Get latest version: "$latest_version" ...
download_url=$($curl --silent --location "$latest_version" | "$grep" --only-matching '(?<="browser_download_url":\s")[^,]+balenaEtcher-[^,-]+-win\.zip(?=")' | head -n1)
download_url=$($curl --silent --location "$latest_version" | "$grep" --only-matching '(?<="browser_download_url":\s")[^,]+balenaEtcher-win32-x64-[^,-]+\.zip(?=")' | head -n1)
[[ -z "$download_url" ]] && {
echo "Cannot get release version"
exit 1
Expand Down

0 comments on commit 7247236

Please sign in to comment.