Fix: Geht in das Git-Verzeichnis
This commit is contained in:
parent
a70f7dc167
commit
ea1489341f
@ -14,6 +14,7 @@ fi
|
|||||||
# === Variablen ===
|
# === Variablen ===
|
||||||
WHOAMI=$(whoami)
|
WHOAMI=$(whoami)
|
||||||
USER=${SUDO_USER:-$WHOAMI}
|
USER=${SUDO_USER:-$WHOAMI}
|
||||||
|
DIR=$(pwd)
|
||||||
|
|
||||||
# === Skript-Funktionen ===
|
# === Skript-Funktionen ===
|
||||||
cleanup() {
|
cleanup() {
|
||||||
@ -50,7 +51,9 @@ trap cleanup SIGINT
|
|||||||
|
|
||||||
wait_for_internet_connection
|
wait_for_internet_connection
|
||||||
|
|
||||||
sudo -u $USER git pull |& while IFS= read -r line; do log "$line"; done
|
cd "$(dirname "$0")"
|
||||||
|
sudo -u "$USER" git pull |& while IFS= read -r line; do log "$line"; done
|
||||||
|
cd "$DIR"
|
||||||
|
|
||||||
update_packages
|
update_packages
|
||||||
update_flatpak
|
update_flatpak
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user