From 423c8ea9ecdc6d96f32e18b89d7abd8859747187 Mon Sep 17 00:00:00 2001 From: Maksim Ivanov <34414986+Ld-Hagen@users.noreply.github.com> Date: Tue, 12 Sep 2023 11:20:41 +0300 Subject: [PATCH] Removed hardcoded path for Arch systems --- scripts/fix-opera.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fix-opera.sh b/scripts/fix-opera.sh index ac73b58..0d7011b 100755 --- a/scripts/fix-opera.sh +++ b/scripts/fix-opera.sh @@ -92,7 +92,7 @@ for opera in ${OPERA_VERSIONS[@]}; do echo "Doing $opera" EXECUTABLE=$(command -v "$opera") if [[ $ARCH_SYSTEM -eq true ]]; then - OPERA_DIR="/usr/lib/$opera" + OPERA_DIR=$(dirname $(cat $EXECUTABLE | grep exec | cut -d ' ' -f 2)) else OPERA_DIR=$(dirname $(readlink -f $EXECUTABLE)) fi