regexghost-dotfiles

My dotfiles and scripts
git clone git@git.regexghost.com/regexghost-dotfiles.git
Log | Files | Refs | README

github_latest_release.sh (259B)


      1 #!/usr/bin/env bash
      2 
      3 user_name="$1"
      4 repo_name="$2"
      5 
      6 latest_tag=$(curl -w "%{redirect_url}" https://github.com/${user_name}/${repo_name}/releases/latest/ | sed 's/.*\///g')
      7 
      8 echo https://github.com/${user_name}/${repo_name}/archive/refs/tags/${latest_tag}.zip