„bHELPER.sh“ ändern
This commit is contained in:
parent
4a361167e1
commit
3117195d23
46
bHELPER.sh
46
bHELPER.sh
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
SkriptVersion="2022-10-17 14:45"
|
SkriptVersion="2022-10-17 23:30"
|
||||||
|
|
||||||
gl_SkriptName=$(basename "${0}")
|
gl_SkriptName=$(basename "${0}")
|
||||||
gl__SkriptPfadName=$(cd "$(dirname "${0}")"; pwd -P)/$(basename "${0}")
|
gl__SkriptPfadName=$(cd "$(dirname "${0}")"; pwd -P)/$(basename "${0}")
|
||||||
|
@ -62,11 +62,18 @@ 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 {
|
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 "Daten der Reporitories aktualisieren"
|
||||||
task_title_syntax " sudo zypper refresh"
|
task_title_syntax " sudo zypper refresh"
|
||||||
echo "${gl__ausgabe_anfang}"
|
|
||||||
|
terminal_output_begin
|
||||||
sudo zypper refresh
|
sudo zypper refresh
|
||||||
echo "${gl__ausgabe_ende}"
|
terminal_output_end
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
task_title "Anstehende Aktualisierungen anzeigen"
|
task_title "Anstehende Aktualisierungen anzeigen"
|
||||||
task_title_syntax " zypper list-updates"
|
task_title_syntax " zypper list-updates"
|
||||||
echo "${gl__ausgabe_anfang}"
|
|
||||||
|
terminal_output_begin
|
||||||
zypper list-updates
|
zypper list-updates
|
||||||
echo "${gl__ausgabe_ende}"
|
terminal_output_end
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
task_title "Aktualisierungen installieren"
|
task_title "Aktualisierungen installieren"
|
||||||
task_title_syntax " sudo zypper dup"
|
task_title_syntax " sudo zypper dup"
|
||||||
echo "${gl__ausgabe_anfang}"
|
|
||||||
|
terminal_output_begin
|
||||||
sudo zypper dup
|
sudo zypper dup
|
||||||
echo "${gl__ausgabe_ende}"
|
terminal_output_end
|
||||||
echo ""
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -523,11 +528,12 @@ echo "${gl__bittewaehlen}"
|
||||||
banner
|
banner
|
||||||
|
|
||||||
task_title "Installierte Pakete aktualisieren"
|
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"
|
task_title_syntax " sudo flatpak update"
|
||||||
|
|
||||||
|
terminal_output_begin
|
||||||
|
sudo /usr/bin/flatpak update
|
||||||
|
terminal_output_end
|
||||||
|
|
||||||
ende
|
ende
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue