More work on system updates support.
This commit is contained in:
@@ -1,17 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Stop the screen reader if this closes for any reason
|
||||
trap 'sudo -n /usr/bin/systemctl stop fenrirscreenreader.service' SIGINT SIGTERM SIGHUP EXIT
|
||||
|
||||
# Start Fenrir for interaction with the terminal
|
||||
sudo -n /usr/bin/systemctl start fenrirscreenreader.service
|
||||
|
||||
# Clear the screen before loading
|
||||
clear
|
||||
|
||||
# Update system packages (run as stormux user since yay shouldn't run as root)
|
||||
sudo -u stormux yay -Syu --noconfirm --removemake --cleanafter
|
||||
|
||||
gitUrl="https://git.stormux.org/storm/gaming-image-files"
|
||||
gitPath="${gitUrl##*/}"
|
||||
pushd /tmp || exit
|
||||
git config --global credential.helper store
|
||||
git clone "${gitUrl}"
|
||||
pushd "${gitPath}" || exit
|
||||
git checkout master
|
||||
git lfs pull
|
||||
# Files and directories to ignore when copying
|
||||
ignoreFiles=(".git" "./image" ".git*" "/home/stormux/.w3m")
|
||||
ignoreFiles=(".git" "./image" ".git*" "/home/stormux/.w3m" "/home/stormux/.irssi")
|
||||
# Build find command with ignore patterns
|
||||
findArgs=()
|
||||
for ignore in "${ignoreFiles[@]}"; do
|
||||
|
||||
Reference in New Issue
Block a user