From 2861f164ec0156a45757994fad4caffe3840e86a Mon Sep 17 00:00:00 2001 From: Maksim Ivanov <34414986+Ld-Hagen@users.noreply.github.com> Date: Mon, 13 Sep 2021 21:41:39 +0300 Subject: [PATCH] OPERA_FOLDER variable in widevine config and also escaped quotes --- fix-opera.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fix-opera.sh b/fix-opera.sh index f613d33..194a006 100644 --- a/fix-opera.sh +++ b/fix-opera.sh @@ -42,7 +42,7 @@ if test -d $WIDEVINE_FOLDER rm -rf "$OPERA_FOLDER/lib_extra" mkdir "$OPERA_FOLDER/lib_extra" cp -R $WIDEVINE_FOLDER "$OPERA_FOLDER/lib_extra/" - printf "[\n {\n "preload": "/usr/lib/x86_64-linux-gnu/opera/lib_extra/WidevineCdm"\n }\n]\n" > "$OPERA_FOLDER/resources/widevine_config.json" + printf "[\n {\n \"preload\": \"$OPERA_FOLDER/lib_extra/WidevineCdm\"\n }\n]\n" > "$OPERA_FOLDER/resources/widevine_config.json" else printf "\nThere should be Google Chrome installed to /opt/google/chrome to use its WidevineCdm\n" fi