Last active
December 15, 2015 18:49
-
-
Save stefanschmidt/5307056 to your computer and use it in GitHub Desktop.
Installting the Flash player on OS X via CLI (improved)
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
FLASH_URL="http://fpdownload.macromedia.com/get/flashplayer/current/licensing/mac/install_flash_player_12_osx.dmg" | |
FLASH_DMG=$(mktemp -d -t flash_dmg)/flash.dmg | |
FLASH_MOUNTPOINT=$(mktemp -d -t flash_mountpoint) | |
FLASH_PKG="$FLASH_MOUNTPOINT/Install Adobe Flash Player.app/Contents/Resources/Adobe Flash Player.pkg" | |
FLASH_PLIST="$FLASH_PKG/Contents/Info.plist" | |
curl -o $FLASH_DMG $FLASH_URL | |
hdiutil attach -mountpoint $FLASH_MOUNTPOINT -nobrowse $FLASH_DMG | |
echo "Current Flash version is $(defaults read "$FLASH_PLIST" CFBundleShortVersionString)" | |
sudo installer -verbose -pkg "$FLASH_PKG" -target / | |
hdiutil detach $FLASH_MOUNTPOINT -force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment