Created
May 16, 2021 04:35
-
-
Save nosada/3ff63fbb27a2f13f3d0d2e2d04a3b568 to your computer and use it in GitHub Desktop.
Update MakeMKV beta license key
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 | |
MAKEMKV_CONF=$HOME/.MakeMKV/settings.conf | |
LICENSE_PAGE_URL='https://forum.makemkv.com/forum/viewtopic.php?t=1053' | |
NEW_KEY=$(curl -sS "$LICENSE_PAGE_URL" | grep 'The current beta key' | sed -e 's/.*<code>\(.*\)<\/code>.*/\1/g') | |
sed -e '/app_Key/d' -i "$MAKEMKV_CONF" | |
echo "app_Key = \"$NEW_KEY\"" >> "$MAKEMKV_CONF" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment