-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-all.sh
executable file
·59 lines (39 loc) · 1000 Bytes
/
update-all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
if which git>/dev/null; then
if [ -d .git ]; then
git remote update
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse "$UPSTREAM")
BASE=$(git merge-base @ "$UPSTREAM")
if [ $LOCAL = $REMOTE ]; then
echo "update-all up-to-date"
elif [ $LOCAL = $BASE ]; then
git pull
bash -x ./update-all.sh
elif [ $REMOTE = $BASE ]; then
echo "Need to push update-all, but we will not do that automatically"
else
echo "Diverged from upstream. Skipping update"
fi
fi
fi
./update-apt.sh
./update-npm.sh
./update-poetry.sh
./update-pipx.sh
./update-R.sh
./update-snap.sh
./update-conda.sh
./update-julia.sh
./update-rust.sh
./update-atuin.sh
./update-waterfox.sh
./update-calibre.sh
./update-youtube-dl.sh
./update-lxc-containers.sh
# ./update-steam.sh
./update-texlive.sh
./update-snap.sh
./update-pihole.sh
./do-bedup.sh
wait