Skip to content

Commit

Permalink
feat: various UI changes (#4326)
Browse files Browse the repository at this point in the history
* refactor: remove unnecessary comments in default server configurations

The commit removes unnecessary comments from the default server configurations. The comments were providing instructions to edit the configuration files with care, but they are not needed and can be safely removed.

* refactor: update server names in default configuration files

- Updated the servername value in multiple default configuration files to "LinuxGSM" for consistency.
- Refactored the code to reflect the changes made.

* refactor: rename fn_script_log_fatal to fn_script_log_faail

to create more consistency with naming

* feat: improve console output formatting

- Added separator function to improve readability of console output.
- Replaced multiple instances of manual separators with the new function.
- Updated commit message to follow conventional commit standard.

* refactor: remove unnecessary fn_sleep_time calls

This commit removes the fn_sleep_time function calls that are no longer needed in multiple modules. The fn_sleep_time function was used to introduce a delay, but it is no longer necessary for the current implementation.

* better standardise random

* removed bold where not required
  • Loading branch information
dgibbs64 authored Oct 7, 2023
1 parent 0994127 commit e0b7739
Show file tree
Hide file tree
Showing 92 changed files with 310 additions and 320 deletions.
1 change: 0 additions & 1 deletion lgsm/config-default/config-lgsm/dstserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ shard="Master"
cluster="Cluster_1"
cave="false"

# Edit with care
persistentstorageroot="${HOME}/.klei"
confdir="DoNotStarveTogether"

Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/hwserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ admins=""
loadsave=""

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
# Edit with care | http://hurtworld.wikia.com/wiki/Hosting_A_Server
# http://hurtworld.wikia.com/wiki/Hosting_A_Server
startparameters="-batchmode -nographics -logfile ${gamelog} -exec \"host ${port} ${defaultmap} ${loadsave};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode};${admins}\""

#### LinuxGSM Settings ####
Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/inssserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ port="27102"
queryport="27131"
rconport="27015"
rconpassword=""
servername="LinuxGSM Server"
servername="LinuxGSM"
defaultmap="Canyon"
defaultscenario="Scenario_Crossing_Push_Security"
maxplayers="28"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/loserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
## https://docs.linuxgsm.com/game-servers/last-oasis
servername="${selfname}"
servername="LinuxGSM"
ip="0.0.0.0"
port="7777"
queryport="27015"
Expand Down
1 change: 0 additions & 1 deletion lgsm/config-default/config-lgsm/mtaserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ip="0.0.0.0"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
# Edit with care
startparameters=""

#### LinuxGSM Settings ####
Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/ns2cserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ip="0.0.0.0"
port="27015"
defaultmap="co_core"
maxplayers="24"
servername="LinuxGSM Server"
servername="LinuxGSM"
httpuser="admin"
httppassword="admin"
httpport="8080"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/ns2server/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ip="0.0.0.0"
port="27015"
defaultmap="ns2_summit"
maxplayers="24"
servername="LinuxGSM Server"
servername="LinuxGSM"
httpuser="admin"
httppassword="admin"
httpport="8080"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/rustserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ appport="28082"
queryport="28017"
rconpassword="CHANGE_ME"
rconweb="1" # values: Facepunch web panel, Rustadmin desktop and Rustadmin Online = 1, Rusty = 0.
servername="Rust"
servername="LinuxGSM"
gamemode="vanilla" # values: vanilla, softcore ( Doc: https://wiki.facepunch.com/rust/server-gamemodes )
serverlevel="Procedural Map" # values: Procedural Map, Barren, HapisIsland, SavasIsland
customlevelurl="" # Custom level url. +server.levelurl \"${customlevelurl}\"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/sbotsserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
port="7777"
queryport="27015"
defaultmap="StationKappa"
servername="LinuxGSM Server"
servername="LinuxGSM"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="Port=${port}?QueryPort=${queryport} -startup_map ${defaultmap} -server_name \"${servername}\""
Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/stnserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ maxplayers="20"
region="0"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
# Edit with care | https://colonysurvival.gamepedia.com/Dedicated_Server#Installation_.28Linux.29
# https://colonysurvival.gamepedia.com/Dedicated_Server#Installation_.28Linux.29
startparameters="-mc ${maxplayers} -r ${region}"

#### LinuxGSM Settings ####
Expand Down
1 change: 0 additions & 1 deletion lgsm/config-default/config-lgsm/stserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ worldname="moon_save"
worldtype="Moon"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
# Edit with care
startparameters="-LOADLATEST ${worldname} ${worldtype}"

#### LinuxGSM Settings ####
Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/vhserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#### Game Server Settings ####

## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
servername="Valheim Server"
servername="LinuxGSM"
# Minimum password length is 5.
serverpassword=""
port="2456"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/alert_discord.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ discordsend=$(curl --connect-timeout 10 -sSL -H "Content-Type: application/json"

if [ -n "${discordsend}" ]; then
fn_print_fail_nl "Sending Discord alert: ${discordsend}"
fn_script_log_fatal "Sending Discord alert: ${discordsend}"
fn_script_log_fail "Sending Discord alert: ${discordsend}"
else
fn_print_ok_nl "Sending Discord alert"
fn_script_log_pass "Sending Discord alert"
Expand Down
3 changes: 1 addition & 2 deletions lgsm/modules/alert_email.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

fn_print_dots "Sending Email alert: ${email}"
fn_sleep_time

if [ -n "${emailfrom}" ]; then
mail -s "${alertsubject}" -r "${emailfrom}" "${email}" < "${alertlog}"
Expand All @@ -21,5 +20,5 @@ if [ "${exitcode}" == "0" ]; then
fn_script_log_pass "Sending Email alert: ${email}"
else
fn_print_fail_nl "Sending Email alert: ${email}"
fn_script_log_fatal "Sending Email alert: ${email}"
fn_script_log_fail "Sending Email alert: ${email}"
fi
2 changes: 1 addition & 1 deletion lgsm/modules/alert_gotify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ if [ -n "${gotifysend}" ]; then
fn_script_log_pass "Sending Gotify alert"
else
fn_print_fail_nl "Sending Gotify alert: ${gotifysend}"
fn_script_log_fatal "Sending Gotify alert: ${gotifysend}"
fn_script_log_fail "Sending Gotify alert: ${gotifysend}"
fi
2 changes: 1 addition & 1 deletion lgsm/modules/alert_ifttt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ iftttsend=$(curl --connect-timeout 10 -sSL -H "Content-Type: application/json" -

if [ -n "${iftttsend}" ]; then
fn_print_fail_nl "Sending IFTTT alert: ${pushbulletsend}"
fn_script_log_fatal "Sending IFTTT alert: ${pushbulletsend}"
fn_script_log_fail "Sending IFTTT alert: ${pushbulletsend}"
else
fn_print_ok_nl "Sending IFTTT alert"
fn_script_log_pass "Sent IFTTT alert"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/alert_pushbullet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pushbulletsend=$(curl --connect-timeout 10 -sSL -u """${pushbullettoken}"":" -H

if [ -n "${pushbulletsend}" ]; then
fn_print_fail_nl "Sending Pushbullet alert: ${pushbulletsend}"
fn_script_log_fatal "Sending Pushbullet alert: ${pushbulletsend}"
fn_script_log_fail "Sending Pushbullet alert: ${pushbulletsend}"
else
fn_print_ok_nl "Sending Pushbullet alert"
fn_script_log_pass "Sent Pushbullet alert"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/alert_pushover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pushoversend=$(curl --connect-timeout 10 -sS -F token="${pushovertoken}" -F user

if [ -n "${pushoversend}" ]; then
fn_print_fail_nl "Sending Pushover alert: ${pushoversend}"
fn_script_log_fatal "Sending Pushover alert: ${pushoversend}"
fn_script_log_fail "Sending Pushover alert: ${pushoversend}"
else
fn_print_ok_nl "Sending Pushover alert"
fn_script_log_pass "Sent Pushover alert"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/alert_rocketchat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ if [ -n "${rocketchatsend}" ]; then
fn_script_log_pass "Sending Rocketchat alert"
else
fn_print_fail_nl "Sending Rocketchat alert: ${rocketchatsend}"
fn_script_log_fatal "Sending Rocketchat alert: ${rocketchatsend}"
fn_script_log_fail "Sending Rocketchat alert: ${rocketchatsend}"
fi
2 changes: 1 addition & 1 deletion lgsm/modules/alert_slack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ if [ "${slacksend}" == "ok" ]; then
fn_script_log_pass "Sending Slack alert"
else
fn_print_fail_nl "Sending Slack alert: ${slacksend}"
fn_script_log_fatal "Sending Slack alert: ${slacksend}"
fn_script_log_fail "Sending Slack alert: ${slacksend}"
fi
2 changes: 1 addition & 1 deletion lgsm/modules/alert_telegram.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ telegramsend=$(curl --connect-timeout 10 -sSL -H "Content-Type: application/json

if [ -n "${telegramsend}" ]; then
fn_print_fail_nl "Sending Telegram alert: ${telegramsend}"
fn_script_log_fatal "Sending Telegram alert: ${telegramsend}"
fn_script_log_fail "Sending Telegram alert: ${telegramsend}"
else
fn_print_ok_nl "Sending Telegram alert"
fn_script_log_pass "Sent Telegram alert"
Expand Down
4 changes: 2 additions & 2 deletions lgsm/modules/check_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ fi

if [ "${shortname}" == "vh" ] && [ -z "${serverpassword}" ]; then
fn_print_fail_nl "serverpassword is not set"
fn_script_log_fatal "serverpassword is not set"
fn_script_log_fail "serverpassword is not set"
elif [ "${shortname}" == "vh" ] && [ "${#serverpassword}" -le "4" ]; then
fn_print_fail_nl "serverpassword is to short (min 5 chars)"
fn_script_log_fatal "serverpassword is to short (min 5 chars)"
fn_script_log_fail "serverpassword is to short (min 5 chars)"
fi
14 changes: 6 additions & 8 deletions lgsm/modules/check_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn_install_mono_repo() {
if [ "${monoautoinstall}" != "1" ]; then
if [ $? != 0 ]; then
fn_print_failure_nl "Unable to install Mono repository."
fn_script_log_fatal "Unable to install Mono repository."
fn_script_log_fail "Unable to install Mono repository."
else
fn_print_complete_nl "Installing Mono repository completed."
fn_script_log_pass "Installing Mono repository completed."
Expand Down Expand Up @@ -138,7 +138,6 @@ fn_install_missing_deps() {
fn_print_warn "Missing dependencies: ${red}${array_deps_missing[*]}${default}"
fn_script_log_warn "Missing dependencies: ${array_deps_missing[*]}"
fi
fn_sleep_time

# Attempt automatic dependency installation
if [ "${autoinstall}" == "1" ]; then
Expand Down Expand Up @@ -216,7 +215,7 @@ fn_install_missing_deps() {
if [ "${steamcmdfail}" ]; then
if [ "${commandname}" == "INSTALL" ]; then
fn_print_failure_nl "Missing dependencies required to run SteamCMD."
fn_script_log_fatal "Missing dependencies required to run SteamCMD."
fn_script_log_fail "Missing dependencies required to run SteamCMD."
core_exit.sh
else
fn_print_error_nl "Missing dependencies required to run SteamCMD."
Expand Down Expand Up @@ -336,15 +335,14 @@ fn_deps_detector() {
if [ "${commandname}" == "INSTALL" ]; then
if [ "$(whoami)" == "root" ]; then
echo -e ""
echo -e "${lightyellow}Checking Dependencies as root${default}"
echo -e "================================="
echo -e "${bold}${lightyellow}Checking ${gamename} Dependencies as root${default}"
fn_messages_separator
fn_print_information_nl "Checking any missing dependencies for ${gamename} server only."
fn_print_information_nl "This will NOT install a ${gamename} server."
fn_sleep_time
else
echo -e ""
echo -e "${lightyellow}Checking Dependencies${default}"
echo -e "================================="
echo -e "${bold}${lightyellow}Checking ${gamename} Dependencies${default}"
fn_messages_separator
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/check_executable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ ! -f "${executabledir}/${execname}" ]; then
fn_print_fail_nl "executable was not found"
echo -e "* ${executabledir}/${execname}"
if [ -d "${lgsmlogdir}" ]; then
fn_script_log_fatal "Executable was not found: ${executabledir}/${execname}"
fn_script_log_fail "Executable was not found: ${executabledir}/${execname}"
fi
unset exitbypass
core_exit.sh
Expand Down
8 changes: 4 additions & 4 deletions lgsm/modules/check_permissions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn_check_ownership() {
fi
if [ "${selfownissue}" == "1" ] || [ "${funcownissue}" == "1" ] || [ "${filesownissue}" == "1" ]; then
fn_print_fail_nl "Ownership issues found"
fn_script_log_fatal "Ownership issues found"
fn_script_log_fail "Ownership issues found"
fn_print_information_nl "The current user ($(whoami)) does not have ownership of the following files:"
fn_script_log_info "The current user ($(whoami)) does not have ownership of the following files:"
{
Expand Down Expand Up @@ -56,7 +56,7 @@ fn_check_permissions() {
if [ -d "${modulesdir}" ]; then
if [ "$(find "${modulesdir}" -type f -not -executable | wc -l)" -ne "0" ]; then
fn_print_fail_nl "Permissions issues found"
fn_script_log_fatal "Permissions issues found"
fn_script_log_fail "Permissions issues found"
fn_print_information_nl "The following files are not executable:"
fn_script_log_info "The following files are not executable:"
{
Expand All @@ -80,7 +80,7 @@ fn_check_permissions() {
grouprootdirperm="${rootdirperm:1:1}"
if [ "${userrootdirperm}" != "7" ] && [ "${grouprootdirperm}" != "7" ]; then
fn_print_fail_nl "Permissions issues found"
fn_script_log_fatal "Permissions issues found"
fn_script_log_fail "Permissions issues found"
fn_print_information_nl "The following directory does not have the correct permissions:"
fn_script_log_info "The following directory does not have the correct permissions:"
fn_script_log_info "${rootdir}"
Expand Down Expand Up @@ -198,7 +198,7 @@ fn_sys_perm_errors_fix() {
if [ "${sysdirpermerror}" == "1" ] || [ "${classdirpermerror}" == "1" ] || [ "${netdirpermerror}" == "1" ]; then
fn_print_error "Could not fix /sys permissions"
fn_script_log_error "Could not fix /sys permissions."
fn_sleep_time

# Show the user how to fix.
fn_sys_perm_fix_manually_msg
else
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/check_root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [ "$(whoami)" == "root" ]; then
if [ "${commandname}" != "INSTALL" ]; then
fn_print_fail_nl "Do NOT run this script as root!"
if [ -d "${lgsmlogdir}" ]; then
fn_script_log_fatal "${selfname} attempted to run as root."
fn_script_log_fail "${selfname} attempted to run as root."
else
# Forces exit code is log does not yet exist.
exitcode=1
Expand Down
4 changes: 2 additions & 2 deletions lgsm/modules/check_system_dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ ! -d "${serverfiles}" ]; then
fn_print_fail_nl "Cannot access ${serverfiles}: No such directory"
if [ -d "${lgsmlogdir}" ]; then
fn_script_log_fatal "Cannot access ${serverfiles}: No such directory."
fn_script_log_fail "Cannot access ${serverfiles}: No such directory."
fi
core_exit.sh
fi

if [ ! -d "${systemdir}" ]; then
fn_print_fail_nl "Cannot access ${systemdir}: No such directory"
if [ -d "${lgsmlogdir}" ]; then
fn_script_log_fatal "Cannot access ${systemdir}: No such directory."
fn_script_log_fail "Cannot access ${systemdir}: No such directory."
fi
core_exit.sh
fi
4 changes: 2 additions & 2 deletions lgsm/modules/check_tmuxception.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_check_is_in_tmux() {
if [ "${TMUX}" ]; then
fn_print_fail_nl "tmuxception error: Sorry Cobb you cannot start a tmux session inside of a tmux session."
fn_script_log_fatal "Tmuxception error: Attempted to start a tmux session inside of a tmux session."
fn_script_log_fail "Tmuxception error: Attempted to start a tmux session inside of a tmux session."
fn_print_information_nl "LinuxGSM creates a tmux session when starting the server."
echo -e "It is not possible to run a tmux session inside another tmux session"
echo -e "https://docs.linuxgsm.com/requirements/tmux#tmuxception"
Expand All @@ -21,7 +21,7 @@ fn_check_is_in_tmux() {
fn_check_is_in_screen() {
if [ "${STY}" ]; then
fn_print_fail_nl "tmuxception error: Sorry Cobb you cannot start a tmux session inside of a screen session."
fn_script_log_fatal "Tmuxception error: Attempted to start a tmux session inside of a screen session."
fn_script_log_fail "Tmuxception error: Attempted to start a tmux session inside of a screen session."
fn_print_information_nl "LinuxGSM creates a tmux session when starting the server."
echo -e "It is not possible to run a tmux session inside screen session"
echo -e "https://docs.linuxgsm.com/requirements/tmux#tmuxception"
Expand Down
10 changes: 5 additions & 5 deletions lgsm/modules/command_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,18 @@ fn_backup_compression() {
# Check that excludedir is a valid path.
if [ ! -d "${excludedir}" ]; then
fn_print_fail_nl "Problem identifying the previous backup directory for exclusion."
fn_script_log_fatal "Problem identifying the previous backup directory for exclusion"
fn_script_log_fail "Problem identifying the previous backup directory for exclusion"
core_exit.sh
fi

tar -czf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "${excludedir}" --exclude "${lockdir}" ./.
local exitcode=$?
if [ "${exitcode}" != 0 ]; then
fn_print_fail_eol
fn_script_log_fatal "Backup in progress: FAIL"
fn_script_log_fail "Backup in progress: FAIL"
echo -e "${extractcmd}" | tee -a "${lgsmlog}"
fn_print_fail_nl "Starting backup"
fn_script_log_fatal "Starting backup"
fn_script_log_fail "Starting backup"
else
fn_print_ok_eol
fn_print_ok_nl "Completed: ${backupname}.tar.gz, total size $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}')"
Expand Down Expand Up @@ -217,15 +217,15 @@ fn_backup_relpath() {
declare -a rdirtoks=($(readlink -f "${rootdir}" | sed "s/\// /g"))
if [ ${#rdirtoks[@]} -eq 0 ]; then
fn_print_fail_nl "Problem assessing rootdir during relative path assessment"
fn_script_log_fatal "Problem assessing rootdir during relative path assessment: ${rootdir}"
fn_script_log_fail "Problem assessing rootdir during relative path assessment: ${rootdir}"
core_exit.sh
fi

# Populate an array of tokens initialized from the backupdir components.
declare -a bdirtoks=($(readlink -f "${backupdir}" | sed "s/\// /g"))
if [ ${#bdirtoks[@]} -eq 0 ]; then
fn_print_fail_nl "Problem assessing backupdir during relative path assessment"
fn_script_log_fatal "Problem assessing backupdir during relative path assessment: ${rootdir}"
fn_script_log_fail "Problem assessing backupdir during relative path assessment: ${rootdir}"
core_exit.sh
fi

Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/command_debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ echo -e ""
echo -e "Use debug for identifying server issues only!"
echo -e "Press CTRL+c to drop out of debug mode."
fn_print_warning_nl "If ${selfname} is already running it will be stopped."
echo -e ""

if ! fn_prompt_yn "Continue?" Y; then
exitcode=0
core_exit.sh
Expand Down
6 changes: 3 additions & 3 deletions lgsm/modules/command_dev_clear_modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ commandaction="Clearing modules"
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_firstcommand_set

echo -e "================================="
echo -e "Clear Modules"
echo -e "================================="
echo -e ""
echo -e "${bold}${lightyellow}Clear Modules${default}"
fn_messages_separator
echo -e ""
if fn_prompt_yn "Do you want to delete all modules?" Y; then
rm -rfv "${modulesdir:?}/"*
Expand Down
Loading

0 comments on commit e0b7739

Please sign in to comment.