diff --git a/README.md b/README.md index 7e63a5d..ef53b11 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ## Requirements -1. **wget** (Is needed for downloading the ffmpeg lib and Chrome) +1. **wget** (Is needed for downloading the ffmpeg lib and widevine) ```sudo apt install wget``` 2. **unzip** (Is needed for unpacking the downloaded file) @@ -14,22 +14,22 @@ ## Usage -1. Clone this repo and +1. Clone this repo and ```git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git``` - + 2. Go to the repo root folder ```cd ./fix-opera-linux-ffmpeg-widevine``` - + 3. (*Optional*) Run script. And if it works well go to next step. ```sudo ./scripts/fix-opera.sh``` 4. Run install script and answer few questions. - + ```sudo ./install.sh``` - + 5. Delete the repo - - ```rm -rf ./fix-opera-linux-ffmpeg-widevine``` + + ```cd .. && rm -rf ./fix-opera-linux-ffmpeg-widevine``` diff --git a/install.sh b/install.sh index d1eb8ab..f567009 100755 --- a/install.sh +++ b/install.sh @@ -72,6 +72,7 @@ done mkdir -p $INSTALL_PATH cp -f $SCRIPT_PATH/scripts/fix-opera.sh $INSTALL_PATH +chmod +x $INSTALL_PATH/fix-opera.sh printf "Would you like to create an alias for user $USER_NAME? [y/n]" while read CREATE_ALIAS; do @@ -101,3 +102,17 @@ while read CREATE_HOOK; do continue;; esac done + +printf "Would you like to run it now? [y/n]" +while read RUN_NOW; do + case $RUN_NOW in + "y" | "Y") + $INSTALL_PATH/fix-opera.sh + break;; + "n" | "N") + break;; + * ) + printf "Would you like to run it now? [y/n]" + continue;; + esac +done