Add exe relative path support to start.sh

parent b961806f
...@@ -29,7 +29,9 @@ MISSING_DESKTOP_FILE=0 ...@@ -29,7 +29,9 @@ MISSING_DESKTOP_FILE=0
if [[ -f "$1" ]] ; then if [[ -f "$1" ]] ; then
portwine_exe="$(realpath "$1")" 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" portwine_exe="$1"
MISSING_DESKTOP_FILE=1 MISSING_DESKTOP_FILE=1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment