Removed hardcoded path for Arch systems

This commit is contained in:
Maksim Ivanov
2023-09-12 11:20:41 +03:00
committed by GitHub
parent e0e13e6cb1
commit 423c8ea9ec

View File

@@ -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