From d58105d64d46ec7878b44b880510f0dc868ace8c Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 11 Feb 2023 03:56:40 +0300 Subject: [PATCH] scripts: flatpak: fix Half-Life directory detection --- scripts/flatpak/run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/flatpak/run.sh b/scripts/flatpak/run.sh index 17096006..c0fc4667 100755 --- a/scripts/flatpak/run.sh +++ b/scripts/flatpak/run.sh @@ -26,7 +26,7 @@ echo "XASH3D_BASEDIR is $XASH3D_BASEDIR" if [ -z "$XASH3D_RODIR" ]; then # TODO: detect by libraryfolders.vdf and installed apps STEAMDIRS="\ - $HOME/.local/share/Steam/steamapps/common/ \ + $HOME/.local/share/Steam/steamapps/common \ $HOME/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common \ $HOME/.steam/steam/steamapps/common" HALFLIFEDIR="Half-Life" @@ -38,13 +38,13 @@ if [ -z "$XASH3D_RODIR" ]; then echo "Detected Steam library in $i, probing Half-Life..." - if [ ! -d "$i$HALFLIFEDIR" ]; then + if [ ! -d "$i/$HALFLIFEDIR" ]; then continue fi - echo "Detected Half-Life installation in $i$HALFLIFEDIR..." + echo "Detected Half-Life installation in $i/$HALFLIFEDIR..." - export XASH3D_RODIR="$i$HALFLIFEDIR" + export XASH3D_RODIR="$i/$HALFLIFEDIR" break done fi