Skip to content

Instantly share code, notes, and snippets.

@DrDoctor13
Last active September 6, 2018 15:12
Show Gist options
  • Save DrDoctor13/ff141edf1bf7ab4153ccf0e639e3c487 to your computer and use it in GitHub Desktop.
Save DrDoctor13/ff141edf1bf7ab4153ccf0e639e3c487 to your computer and use it in GitHub Desktop.
Origin Updater
#!/bin/bash
echo "Downloading latest Origin setup file"
sleep 1
wget "https://download.dm.origin.com/origin/live/OriginSetup.exe"
echo "Extracting to .zip file"
sleep 1
unzip OriginSetup.exe 'update/*.zip'
sleep 1
echo "Enter Origin installation directory"
read path
unzip -o ./update/*.zip -d $path
echo "Cleaning up..."
sleep 1
rm -r ./update
rm OriginSetup.exe
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment