mirror of
https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git
synced 2025-12-29 03:23:00 +03:00
Removed hardcoded path for Arch systems
This commit is contained in:
@@ -92,7 +92,7 @@ for opera in ${OPERA_VERSIONS[@]}; do
|
|||||||
echo "Doing $opera"
|
echo "Doing $opera"
|
||||||
EXECUTABLE=$(command -v "$opera")
|
EXECUTABLE=$(command -v "$opera")
|
||||||
if [[ $ARCH_SYSTEM -eq true ]]; then
|
if [[ $ARCH_SYSTEM -eq true ]]; then
|
||||||
OPERA_DIR="/usr/lib/$opera"
|
OPERA_DIR=$(dirname $(cat $EXECUTABLE | grep exec | cut -d ' ' -f 2))
|
||||||
else
|
else
|
||||||
OPERA_DIR=$(dirname $(readlink -f $EXECUTABLE))
|
OPERA_DIR=$(dirname $(readlink -f $EXECUTABLE))
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user