Skip to content

Instantly share code, notes, and snippets.

@natewalck
Last active December 14, 2015 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natewalck/5044994 to your computer and use it in GitHub Desktop.
Save natewalck/5044994 to your computer and use it in GitHub Desktop.
Download - Adobe Flash Player
#!/bin/sh
curl http://fpdownload2.macromedia.com/get/flashplayer/update/current/xml/version_en_mac_pl.xml --silent -o /tmp/fp_version.xml
SCRAPED_VERSION=`cat /tmp/fp_version.xml | xpath /XML/update/@version | sed 's/.*"\(.*\)"[^"]*$/\1/'`
FLASH_VERSION=`echo "$SCRAPED_VERSION" | sed 's/,/./g'`
curl "http://fpdownload.macromedia.com/get/flashplayer/pdc/$FLASH_VERSION/install_flash_player_osx.dmg" -o "FlashPlayer-$FLASH_VERSION.dmg"
echo "FLASH_DMG=/tmp/FlashPlayer-$FLASH_VERSION.dmg" > var.properties
echo "FLASH_VERSION=$FLASH_VERSION" >> var.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment