install.sh aktualisiert
This commit is contained in:
parent
7e4ca004af
commit
74c6b5a185
26
install.sh
26
install.sh
|
@ -29,7 +29,25 @@ run() {
|
||||||
if [ "$DEBUG" = true ]; then
|
if [ "$DEBUG" = true ]; then
|
||||||
"$@"
|
"$@"
|
||||||
else
|
else
|
||||||
"$@" >> "$LOGFILE" 2>&1
|
local CMD="$*"
|
||||||
|
local TMP_LOG=$(mktemp)
|
||||||
|
|
||||||
|
if "$@" >"$TMP_LOG" 2>&1; then
|
||||||
|
# Nur relevante Einzelzeilen loggen (optional)
|
||||||
|
echo "[OK] $CMD" >> "$LOGFILE"
|
||||||
|
else
|
||||||
|
# Fehlerfall: logge alles
|
||||||
|
{
|
||||||
|
echo "❌ Fehler bei Befehl: $CMD"
|
||||||
|
echo "------- BEGIN AUSGABE -------"
|
||||||
|
cat "$TMP_LOG"
|
||||||
|
echo "-------- END AUSGABE --------"
|
||||||
|
echo
|
||||||
|
} >> "$LOGFILE"
|
||||||
|
log "❌ Fehler bei: $CMD (Details siehe $LOGFILE)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f "$TMP_LOG"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,17 +84,17 @@ if ! sudo apt install -y nala; then
|
||||||
if ! sudo apt install -y nala; then
|
if ! sudo apt install -y nala; then
|
||||||
log "❌ nala konnte auch nach Hinzufügen der Quelle nicht installiert werden. Updates müssen später manuell installiert werden"
|
log "❌ nala konnte auch nach Hinzufügen der Quelle nicht installiert werden. Updates müssen später manuell installiert werden"
|
||||||
log "📦 Installiere Pakete..."
|
log "📦 Installiere Pakete..."
|
||||||
run sudo apt install alacritty ninja-build gettext libtool-bin cmake g++ pkg-config unzip curl git tmux build-essential manpages-dev clangd python3-jedi zsh -y
|
run sudo apt install vim alacritty ninja-build gettext libtool-bin cmake g++ pkg-config unzip curl git tmux build-essential manpages-dev clangd python3-jedi zsh -y
|
||||||
else
|
else
|
||||||
apt_safe_upgrade
|
apt_safe_upgrade
|
||||||
log "📦 Installiere Pakete..."
|
log "📦 Installiere Pakete..."
|
||||||
run sudo nala install alacritty ninja-build gettext libtool-bin cmake g++ pkg-config unzip curl git tmux build-essential manpages-dev clangd python3-jedi zsh -y
|
run sudo nala install vim alacritty ninja-build gettext libtool-bin cmake g++ pkg-config unzip curl git tmux build-essential manpages-dev clangd python3-jedi zsh -y
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
log "✅ nala erfolgreich installiert."
|
log "✅ nala erfolgreich installiert."
|
||||||
apt_safe_upgrade
|
apt_safe_upgrade
|
||||||
log "📦 Installiere Pakete..."
|
log "📦 Installiere Pakete..."
|
||||||
run sudo nala install alacritty ninja-build gettext libtool-bin cmake g++ pkg-config unzip curl git tmux build-essential manpages-dev clangd python3-jedi zsh -y
|
run sudo nala install vim alacritty ninja-build gettext libtool-bin cmake g++ pkg-config unzip curl git tmux build-essential manpages-dev clangd python3-jedi zsh -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pause_if_debug
|
pause_if_debug
|
||||||
|
|
Loading…
Reference in New Issue