diff --git a/data_from_portwine/scripts/help_info b/data_from_portwine/scripts/help_info deleted file mode 100755 index 4b57e2ccdcd836057fdf339b8d5b2356ed03516f..0000000000000000000000000000000000000000 --- a/data_from_portwine/scripts/help_info +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash -files_from_autoinstall=$(ls "${PORT_SCRIPTS_PATH}/pw_autoinstall") -echo -e "${translations[use]}: [--repair] [--reinstall] [--autoinstall] - ---repair ${translations[Forces all scripts to be updated to a working state - (helps if PortProton is not working)]} ---reinstall ${translations[Reinstalls PortProton and resets all settings to default]} ---generate-pot ${translations[Creates a files with translations .pot and .po]} ---debug ${translations[Debug scripts for PortProton - (saved log in]} $PORT_WINE_PATH/scripts-debug.log) ---update ${translations[Check update scripts for PortProton]} ---launch ${translations[Launches the application immediately, requires the path to the .exe file]} ---edit-db ${translations[After the variable, the path to the .exe file is required and then the variables. - (List their variables and values for example PW_MANGOHUD=1 PW_VKBASALT=0, etc.)]} ---autoinstall ${translations[--autoinstall and the name of what needs to be installed is given in the list below:]} - -$(echo $files_from_autoinstall | awk '{for (i = 1; i <= NF; i++) {if (i % 10 == 0) {print ""} printf "%s ", $i}}') -" diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index 885b00fa8bd9535949928cff7e27c8a3aeaa26c0..507fc63b18f55a6e502c7ffa1f7c4d6ee25307d1 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -372,8 +372,26 @@ fi case "$1" in --help) - # shellcheck source=/dev/null - source "${PORT_SCRIPTS_PATH}/help_info" + help_info () { + files_from_autoinstall=$(ls "${PORT_SCRIPTS_PATH}/pw_autoinstall") + echo -e "${translations[use]}: [--repair] [--reinstall] [--autoinstall] + +--repair ${translations[Forces all scripts to be updated to a working state + (helps if PortProton is not working)]} +--reinstall ${translations[Reinstalls PortProton and resets all settings to default]} +--generate-pot ${translations[Creates a files with translations .pot and .po]} +--debug ${translations[Debug scripts for PortProton + (saved log in]} $PORT_WINE_PATH/scripts-debug.log) +--update ${translations[Check update scripts for PortProton]} +--launch ${translations[Launches the application immediately, requires the path to the .exe file]} +--edit-db ${translations[After the variable, the path to the .exe file is required and then the variables. + (List their variables and values for example PW_MANGOHUD=1 PW_VKBASALT=0, etc.)]} +--autoinstall ${translations[--autoinstall and the name of what needs to be installed is given in the list below:]} + +$(echo $files_from_autoinstall | awk '{for (i = 1; i <= NF; i++) {if (i % 10 == 0) {print ""} printf "%s ", $i}}') + " + } + help_info exit 0 ;; --reinstall)