Add exe relative path support to start.sh

This commit is contained in:
Boris Yumankulov 2024-06-21 18:50:24 +05:00
parent b961806fa8
commit 1b6dbebdd6
No known key found for this signature in database
GPG Key ID: 14B4A5673FD39C76

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