mirror of
https://codeberg.org/knightsub9/lxcafe.git
synced 2026-07-19 19:30:16 +02:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9e1e7e9f3 |
@@ -2,6 +2,21 @@
|
||||
|
||||
SCRIPT_VERSION="v11"
|
||||
|
||||
question_answered_with_yes() {
|
||||
local prompt="$1"
|
||||
local ans
|
||||
printf '%b\n Geben Sie j oder n ein und die Eingabetaste,\n Abbruch mit jeder anderen Taste ... [j/N]: ' "$prompt"
|
||||
read -r ans
|
||||
case "$ans" in
|
||||
j | J | ja | y | Y) return 0 ;;
|
||||
n | N | "") return 1 ;;
|
||||
*)
|
||||
echo "Abbruch."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
echo "
|
||||
#####################################
|
||||
#### Nachinstallationsarbeiten
|
||||
@@ -209,7 +224,6 @@ echo
|
||||
echo "#### Chromium Browser installieren:"
|
||||
if question_answered_with_yes " ### Installiere Chromium? ###"; then
|
||||
echo "### Chromium ###"
|
||||
sudo apt install chromium-browser
|
||||
sudo apt install chromium
|
||||
fi
|
||||
|
||||
@@ -253,9 +267,6 @@ if question_answered_with_yes " ### Installiere Signal? ###"; then
|
||||
#
|
||||
fi
|
||||
|
||||
# execute bundles
|
||||
# example: $SCRIPT_DIR/bundles/template.sh
|
||||
|
||||
echo
|
||||
echo "###############################"
|
||||
echo "######### Skript ENDE #########"
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
# <short description here>
|
||||
# A shellscript meant to be used as subscript of `/post_installation_script/Nachinstallationsarbeiten_LC_Esslingen.sh`.
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")"/.. && pwd)"
|
||||
source "$SCRIPT_DIR/common.sh"
|
||||
|
||||
# please seperate stuff that doesn't belong together and maybe put short descriptions before those blocks (as comments) like in the following example:
|
||||
# # Steam and Steam-related packages
|
||||
# echo '### Steam ###'
|
||||
# if question_answered_with_yes " ### Installiere Steam? ###"; then
|
||||
# echo "### Steam ###"
|
||||
# sudo apt install steam-installer
|
||||
# # sudo flatpak install com.valvesoftware.Steam
|
||||
# if question_answered_with_yes " ### Installiere Steam-Geräte-Unterstützungspaket (z. B. für Steam-Controller)? ###"; then
|
||||
# echo "### Steam-Devices ###"
|
||||
# sudo apt install steam-devices
|
||||
# fi
|
||||
# fi
|
||||
# echo '### Ende Steam ###'
|
||||
@@ -1,16 +0,0 @@
|
||||
# functions and variables for use in multiple files ("common" functions and variables)
|
||||
|
||||
question_answered_with_yes() {
|
||||
local prompt="$1"
|
||||
local ans
|
||||
printf '%b\n Geben Sie j oder n ein und die Eingabetaste,\n Abbruch mit jeder anderen Taste ... [j/N]: ' "$prompt"
|
||||
read -r ans
|
||||
case "$ans" in
|
||||
j | J | ja | y | Y) return 0 ;;
|
||||
n | N | "") return 1 ;;
|
||||
*)
|
||||
echo "Abbruch."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
Reference in New Issue
Block a user