„bHELPER.sh“ ändern

This commit is contained in:
dingens 2022-10-17 21:31:30 +00:00
parent 4a361167e1
commit 3117195d23
1 changed files with 27 additions and 21 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
SkriptVersion="2022-10-17 14:45"
SkriptVersion="2022-10-17 23:30"
gl_SkriptName=$(basename "${0}")
gl__SkriptPfadName=$(cd "$(dirname "${0}")"; pwd -P)/$(basename "${0}")
@ -59,14 +59,21 @@ gl__format_cyanlight=$(echo -e "\033[1;96m")
gl__bittewaehlen=$(echo " ${gl__format_red}Bitte wählen und ENTER drücken!${gl__format_off}")
function task_title {
echo -e "${gl__format_cyanlight}${1}${gl__format_off}"
echo -e "${gl__format_cyanlight}${1}${gl__format_off}"
}
function ausgefuehrte_syntax {
echo -e "${gl__format_red}► Ausgeführte Syntax:${gl__format_off} \n ${1}${gl__format_off}"
}
function task_title_syntax {
echo -e "${gl__format_red}► Ausgeführte Syntax:${gl__format_off} \n ${1}${gl__format_off}"
echo -e " ${gl__format_red}Ausgeführte Syntax:${gl__format_off} \n ${1}${gl__format_off}"
echo ""
}
function terminal_output_begin {
echo "${gl__format_red}---- Terminalausgabe (Anfang) --------------------------------------------------------------------------${gl__format_off}"
}
function terminal_output_end {
echo "${gl__format_red}---- Terminalausgabe (Ende) ----------------------------------------------------------------------------${gl__format_off}"
echo ""
}
################################################################################
@ -421,26 +428,24 @@ if test -f "/usr/bin/zypper"; then
task_title "Daten der Reporitories aktualisieren"
task_title_syntax " sudo zypper refresh"
echo "${gl__ausgabe_anfang}"
terminal_output_begin
sudo zypper refresh
echo "${gl__ausgabe_ende}"
echo ""
echo ""
terminal_output_end
task_title "Anstehende Aktualisierungen anzeigen"
task_title_syntax " zypper list-updates"
echo "${gl__ausgabe_anfang}"
terminal_output_begin
zypper list-updates
echo "${gl__ausgabe_ende}"
echo ""
echo ""
terminal_output_end
task_title "Aktualisierungen installieren"
task_title_syntax " sudo zypper dup"
echo "${gl__ausgabe_anfang}"
terminal_output_begin
sudo zypper dup
echo "${gl__ausgabe_ende}"
echo ""
terminal_output_end
fi
@ -523,11 +528,12 @@ echo "${gl__bittewaehlen}"
banner
task_title "Installierte Pakete aktualisieren"
echo "${gl__ausgabe_anfang}"
sudo /usr/bin/flatpak update
echo "${gl__ausgabe_ende}"
echo ""
task_title_syntax " sudo flatpak update"
terminal_output_begin
sudo /usr/bin/flatpak update
terminal_output_end
ende
;;