Created
November 12, 2019 13:34
-
-
Save unsalkorkmaz/3b501d644c81f54e826adb7ac1e1c899 to your computer and use it in GitHub Desktop.
[#centos7 opera video codec #bash solution]
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/bash | |
latest_version_url=$(curl https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/latest -s -L -I -o /dev/null -w '%{url_effective}') | |
latest_version=${latest_version_url##*/} | |
zip_name="$latest_version-linux-x64.zip" | |
dir_to_unzip=/usr/lib64/opera | |
cd /tmp | |
wget https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/download/$latest_version/$zip_name -q | |
sudo unzip -o $zip_name -d $dir_to_unzip | |
rm $zip_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment