From 651893ac6cc3c696dfdfc0559f867658f066a7ab Mon Sep 17 00:00:00 2001
From: Mikhail Tergoev <fidel@altlinux.org>
Date: Sun, 23 Jun 2024 14:14:59 +0300
Subject: [PATCH] fixed relative path

---
 data_from_portwine/scripts/start.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh
index 95de0031..df3a774c 100755
--- a/data_from_portwine/scripts/start.sh
+++ b/data_from_portwine/scripts/start.sh
@@ -31,7 +31,7 @@ if [[ -f "$1" ]] ; then
     portwine_exe="$(realpath "$1")"
 elif [[ -f "$OLDPWD/$1" ]] && [[ "$1" == *.exe ]] ; then
     portwine_exe="$(realpath "$OLDPWD/$1")"
-elif  [[ ! -z "$1" ]] && [[ ! -f "$OLDPWD/$1" ]] && [[ ! -f "$OLDPWD/$1" ]] ; then
+elif [[ "$1" == *.exe ]] ; then
     portwine_exe="$1"
     MISSING_DESKTOP_FILE=1
 fi