aboutsummaryrefslogtreecommitdiff
path: root/shenanigans.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shenanigans.sh')
-rwxr-xr-xshenanigans.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/shenanigans.sh b/shenanigans.sh
index cff5f06..696b618 100755
--- a/shenanigans.sh
+++ b/shenanigans.sh
@@ -99,6 +99,7 @@ backup() {
99 mkdir ../twow 99 mkdir ../twow
100 cp -Rf /home/$USER/Games/turtlewow/Interface ../twow 100 cp -Rf /home/$USER/Games/turtlewow/Interface ../twow
101 cp -Rf /home/$USER/Games/turtlewow/WTF ../twow 101 cp -Rf /home/$USER/Games/turtlewow/WTF ../twow
102 cp -Rf /home/$USER/Games/turtlewow/start.sh ../twow/
102 103
103 # Sync with NAS. 104 # Sync with NAS.
104 rsync -azv \ 105 rsync -azv \
@@ -117,3 +118,19 @@ backup() {
117 # Return back to original directory 118 # Return back to original directory
118 cd $CWD 119 cd $CWD
119} 120}
121
122update() {
123 if grep -qi "debian" /etc/os-release; then
124 sudo apt update
125 sudo apt upgrade -y
126 fi
127
128 if grep -qi "fedora" /etc/os-release; then
129 dnf check-update
130 sudo dnf update -y
131 fi
132
133 if which flatpak > /dev/null 2>&1; then
134 flatpak update -y
135 fi
136}