Added debug for CLI

This commit is contained in:
2024-07-12 17:13:10 +05:00
parent f3819039ed
commit 271a1bb216
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,7 @@
# Development assistants: Cefeiko; Dezert1r; Taz_mania; Anton_Famillianov; gavr; RidBowt; chal55rus; UserDiscord; Boria138; Vano; Akai; Htylol
# shellcheck disable=SC2140,SC2119,SC2206
########################################################################
$PW_DEBUG
echo '
█░░ █ █▄░█ █░█ ▀▄▀ ▄▄ █▀▀ ▄▀█ █▀▄▀█ █ █▄░█ █▀▀ ░ █▀█ █░█
█▄▄ █ █░▀█ █▄█ █░█ ░░ █▄█ █▀█ █░▀░█ █ █░▀█ █▄█ ▄ █▀▄ █▄█
@ -349,6 +350,9 @@ use: [--reinstall] [--autoinstall]
echo "
--generate-pot generated pot file
"
echo "
--debug debug scripts for PortProton
"
exit 0 ;;
@ -364,6 +368,11 @@ use: [--reinstall] [--autoinstall]
'--generate-pot' )
generate_pot
exit 0 ;;
'--debug' )
export PW_DEBUG="set -x"
/usr/bin/env bash -c "${PORT_WINE_PATH}/data/scripts/start.sh"
exit 0 ;;
esac
### GUI ###