forked from CastroFidel/PortWINE
Merge branch 'fix-debug' of github.com:Htylol/PortWINE into Htylol-fix-debug
This commit is contained in:
commit
fd767de34b
@ -3,7 +3,6 @@
|
|||||||
# Development assistants: Cefeiko; Dezert1r; Taz_mania; Anton_Famillianov; gavr; RidBowt; chal55rus; UserDiscord; Boria138; Vano; Akai; Htylol
|
# Development assistants: Cefeiko; Dezert1r; Taz_mania; Anton_Famillianov; gavr; RidBowt; chal55rus; UserDiscord; Boria138; Vano; Akai; Htylol
|
||||||
# shellcheck disable=SC2140,SC2119,SC2206
|
# shellcheck disable=SC2140,SC2119,SC2206
|
||||||
########################################################################
|
########################################################################
|
||||||
$PW_DEBUG
|
|
||||||
echo '
|
echo '
|
||||||
█░░ █ █▄░█ █░█ ▀▄▀ ▄▄ █▀▀ ▄▀█ █▀▄▀█ █ █▄░█ █▀▀ ░ █▀█ █░█
|
█░░ █ █▄░█ █░█ ▀▄▀ ▄▄ █▀▀ ▄▀█ █▀▄▀█ █ █▄░█ █▀▀ ░ █▀█ █░█
|
||||||
█▄▄ █ █░▀█ █▄█ █░█ ░░ █▄█ █▀█ █░▀░█ █ █░▀█ █▄█ ▄ █▀▄ █▄█
|
█▄▄ █ █░▀█ █▄█ █░█ ░░ █▄█ █▀█ █░▀░█ █ █░▀█ █▄█ ▄ █▀▄ █▄█
|
||||||
@ -16,6 +15,7 @@ echo '
|
|||||||
╚═╝░░░░░░╚════╝░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░░░░╚═╝░░╚═╝░╚════╝░░░░╚═╝░░░░╚════╝░╚═╝░░╚══╝
|
╚═╝░░░░░░╚════╝░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░░░░╚═╝░░╚═╝░╚════╝░░░░╚═╝░░░░╚════╝░╚═╝░░╚══╝
|
||||||
'
|
'
|
||||||
|
|
||||||
|
$PW_DEBUG
|
||||||
if [[ $(id -u) = 0 ]] ; then
|
if [[ $(id -u) = 0 ]] ; then
|
||||||
echo "Do not run this script as root!"
|
echo "Do not run this script as root!"
|
||||||
exit 1
|
exit 1
|
||||||
@ -37,6 +37,10 @@ elif [[ -f "$1" ]] ; then
|
|||||||
portwine_exe="$(realpath "$1")"
|
portwine_exe="$(realpath "$1")"
|
||||||
elif [[ -f "$OLDPWD/$1" ]] && [[ "$1" == *.exe ]] ; then
|
elif [[ -f "$OLDPWD/$1" ]] && [[ "$1" == *.exe ]] ; then
|
||||||
portwine_exe="$(realpath "$OLDPWD/$1")"
|
portwine_exe="$(realpath "$OLDPWD/$1")"
|
||||||
|
elif [[ "$1" == "--debug" ]] && [[ -f "$2" ]] ; then
|
||||||
|
portwine_exe="$(realpath "$2")"
|
||||||
|
elif [[ "$1" == "--debug" ]] && [[ -f "$OLDPWD/$2" ]] && [[ "$2" == *.exe ]] ; then
|
||||||
|
portwine_exe="$(realpath "$OLDPWD/$2")"
|
||||||
elif [[ "$1" == *.exe ]] ; then
|
elif [[ "$1" == *.exe ]] ; then
|
||||||
portwine_exe="$1"
|
portwine_exe="$1"
|
||||||
MISSING_DESKTOP_FILE=1
|
MISSING_DESKTOP_FILE=1
|
||||||
@ -409,6 +413,7 @@ use: [--repair] [--reinstall] [--autoinstall]
|
|||||||
"
|
"
|
||||||
echo "
|
echo "
|
||||||
--debug debug scripts for PortProton
|
--debug debug scripts for PortProton
|
||||||
|
(saved log in "$PORT_WINE_PATH/scripts-debug.log")
|
||||||
"
|
"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
|
||||||
@ -428,7 +433,7 @@ use: [--repair] [--reinstall] [--autoinstall]
|
|||||||
'--debug' )
|
'--debug' )
|
||||||
clear
|
clear
|
||||||
export PW_DEBUG="set -x"
|
export PW_DEBUG="set -x"
|
||||||
/usr/bin/env bash -c ${pw_full_command_line[*]} 2>&1 | tee "$PORT_WINE_PATH/scripts.log" &
|
/usr/bin/env bash -c ${pw_full_command_line[*]} 2>&1 | tee "$PORT_WINE_PATH/scripts-debug.log" &
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user