Last active
December 14, 2015 06:48
-
-
Save natewalck/5044994 to your computer and use it in GitHub Desktop.
Download - Adobe Flash Player
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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