From 1b6dbebdd6bc7c904d908b6f9b39b3aca1562242 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Fri, 21 Jun 2024 18:50:24 +0500 Subject: [PATCH] Add exe relative path support to start.sh --- data_from_portwine/scripts/start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index 73dee93d..95de0031 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -29,7 +29,9 @@ MISSING_DESKTOP_FILE=0 if [[ -f "$1" ]] ; then portwine_exe="$(realpath "$1")" -elif [[ "$1" == *.exe ]] ; then +elif [[ -f "$OLDPWD/$1" ]] && [[ "$1" == *.exe ]] ; then + portwine_exe="$(realpath "$OLDPWD/$1")" +elif [[ ! -z "$1" ]] && [[ ! -f "$OLDPWD/$1" ]] && [[ ! -f "$OLDPWD/$1" ]] ; then portwine_exe="$1" MISSING_DESKTOP_FILE=1 fi