wine-staging-updater-osx

From NAT, 5 Years ago, written in Bash, viewed 769 times.
URL https://code.nat.moe/view/841cb404 Embed
Download Paste or View Raw
  1. #!/bin/bash
  2.  
  3. alias download="./padown"
  4. _seed='https://repos.wine-staging.com/macosx/i686/'
  5.  
  6. _url_latest="$_seed$(curl $_seed 2> /dev/null | \
  7.                      grep 'pkg<' | \
  8.                      tail -n1)"
  9.  
  10. _ver_latest=$(echo $_url_latest | \
  11.               awk -F"wine-staging-" '{print $2}' | \
  12.               awk -F"-osx" '{print $1}')
  13.  
  14. _ver_current=$(wine --version | \
  15.                awk -F"wine-" '{print $2}' | \
  16.                awk -F" " '{print $1}')
  17.  
  18. echo "Latest version:  $_ver_latest"
  19. echo "Current version: $_ver_current"
  20.  
  21. [[ ! $_ver_latest == $_ver_current ]] && {
  22.         download $_url_latest
  23.         open wine-staging-$_ver_latest-osx.pkg
  24. } || \
  25.         echo "already latest."

Replies to wine-staging-updater-osx rss

Title Name Language When
Re: wine-staging-updater-osx NAT bash 5 Years ago.

Reply to "wine-staging-updater-osx"

Here you can reply to the paste above

captcha